diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-26 16:35:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-26 16:35:52 +0200 |
commit | 2db89765f3fc5e1fdf12fc0158feef23db8ce2c1 (patch) | |
tree | fb23b53167c7756eaf39274319c31f509d60d5cb /ffmpeg.h | |
parent | 99d742aac41bf613e0b797b1f809040c9b426536 (diff) | |
parent | fc9c857c2d1b61dbbd104750ca1533c4a4658655 (diff) | |
download | ffmpeg-2db89765f3fc5e1fdf12fc0158feef23db8ce2c1.tar.gz |
Merge remote-tracking branch 'cigaes/master'
* cigaes/master:
ffmpeg: use thread message API.
lavu: add thread message API.
compat/w32pthreads: add return value to pthread_cond_init().
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.h')
-rw-r--r-- | ffmpeg.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -44,6 +44,7 @@ #include "libavutil/fifo.h" #include "libavutil/pixfmt.h" #include "libavutil/rational.h" +#include "libavutil/threadmessage.h" #include "libswresample/swresample.h" @@ -336,13 +337,10 @@ typedef struct InputFile { int accurate_seek; #if HAVE_PTHREADS + AVThreadMessageQueue *in_thread_queue; pthread_t thread; /* thread reading from this file */ int non_blocking; /* reading packets from the thread should not block */ - int finished; /* the thread has exited */ int joined; /* the thread has been joined */ - pthread_mutex_t fifo_lock; /* lock for access to fifo */ - pthread_cond_t fifo_cond; /* the main thread will signal on this cond after reading from fifo */ - AVFifoBuffer *fifo; /* demuxed packets are stored here; freed by the main thread */ #endif } InputFile; |