pthread_frame: flush all threads on flush, not just the first one
authorAnton Khirnov <anton@khirnov.net>
Thu, 27 Feb 2014 20:36:33 +0000 (21:36 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 4 Mar 2014 00:39:11 +0000 (01:39 +0100)
commit2256b2a3c1a6eae15dbfca0b95a64d911d618f40
tree9d339c475cf410f7388a6e6f88e58febc7753280
parent89c917fcd92c5e5ae7f226ceb7b1e6a12c82cba7
pthread_frame: flush all threads on flush, not just the first one

avcodec_flush_buffers() must release all internally held references
according to its documentation, for which all the threads need to be
flushed.

Bug-Id: vlc/9665
(cherry picked from commit d1f9563d502037239185c11578cc614bdf0c5870)

Conflicts:
libavcodec/pthread_frame.c
libavcodec/pthread.c