diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-07-05 17:13:37 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-07-05 17:13:37 +0000 |
commit | 576a61a1f180d59ec49833f25a5159538074dd0e (patch) | |
tree | d6be6fa9d4498eaaf53091b9aac801792684c47e | |
parent | 28323078a90c7f73a4f01195e345ddb83501b598 (diff) | |
download | xine-lib-576a61a1f180d59ec49833f25a5159538074dd0e.tar.gz xine-lib-576a61a1f180d59ec49833f25a5159538074dd0e.tar.bz2 |
when first_frame_flag drops to 0, first_frame_reached has to be emitted
CVS patchset: 6775
CVS date: 2004/07/05 17:13:37
-rw-r--r-- | src/xine-engine/video_out.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 29159a491..672e1cb11 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out.c,v 1.201 2004/06/26 13:51:13 mroi Exp $ + * $Id: video_out.c,v 1.202 2004/07/05 17:13:37 mroi Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -444,7 +444,11 @@ static int vo_frame_draw (vo_frame_t *img, xine_stream_t *stream) { if (stream == XINE_ANON_STREAM) continue; pthread_mutex_lock (&stream->first_frame_lock); if (stream->first_frame_flag == 2) { - stream->first_frame_flag = (this->grab_only) ? 0 : 1; + if (this->grab_only) { + stream->first_frame_flag = 0; + pthread_cond_broadcast(&stream->first_frame_reached); + } else + stream->first_frame_flag = 1; img->is_first = FIRST_FRAME_MAX_POLL; lprintf ("get_next_video_frame first_frame_reached\n"); |