diff options
author | Josh de Kock <josh@itanimul.li> | 2016-02-21 22:42:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-22 00:46:49 +0100 |
commit | 67f8a0be54554715a93a4e288da3247c9a5d4e1c (patch) | |
tree | 0ae4328a5607c99697dfed9a5538aac3280384af /libavdevice | |
parent | cf85a20d920fb3c43f81c4b49f0bc6723ab811d9 (diff) | |
download | ffmpeg-67f8a0be54554715a93a4e288da3247c9a5d4e1c.tar.gz |
configure&avdevice/jack: Fixed issue #43 JACK indev support on OSX
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/jack.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavdevice/jack.c b/libavdevice/jack.c index 9ecbf9e32c..545548423d 100644 --- a/libavdevice/jack.c +++ b/libavdevice/jack.c @@ -35,6 +35,16 @@ #include "timefilter.h" #include "avdevice.h" +#if HAVE_DISPATCH_DISPATCH_H +#include <dispatch/dispatch.h> +#define sem_t dispatch_semaphore_t +#define sem_init(psem,x,val) *psem = dispatch_semaphore_create(val) +#define sem_post(psem) dispatch_semaphore_signal(*psem) +#define sem_wait(psem) dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER) +#define sem_timedwait(psem, val) dispatch_semaphore_wait(*psem, dispatch_walltime(val, 0)) +#define sem_destroy(psem) dispatch_release(*psem) +#endif + /** * Size of the internal FIFO buffers as a number of audio packets */ |