From 576a61a1f180d59ec49833f25a5159538074dd0e Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Mon, 5 Jul 2004 17:13:37 +0000 Subject: 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 --- src/xine-engine/video_out.c | 8 ++++++-- 1 file 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"); -- cgit v1.2.3