[FFmpeg-cvslog] r21589 - trunk/ffplay.c

michael subversion
Mon Feb 1 13:22:13 CET 2010


Author: michael
Date: Mon Feb  1 13:22:12 2010
New Revision: 21589

Log:
Insert a flush packet into the que on init, that way common code between
flush and init can be put into the flush handling.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Mon Feb  1 13:19:28 2010	(r21588)
+++ trunk/ffplay.c	Mon Feb  1 13:22:12 2010	(r21589)
@@ -239,12 +239,15 @@ static AVPacket flush_pkt;
 
 static SDL_Surface *screen;
 
+static int packet_queue_put(PacketQueue *q, AVPacket *pkt);
+
 /* packet queue handling */
 static void packet_queue_init(PacketQueue *q)
 {
     memset(q, 0, sizeof(PacketQueue));
     q->mutex = SDL_CreateMutex();
     q->cond = SDL_CreateCond();
+    packet_queue_put(q, &flush_pkt);
 }
 
 static void packet_queue_flush(PacketQueue *q)



More information about the ffmpeg-cvslog mailing list