[SCM] libav/experimental: Insert a flush packet into the que on init, that way common code between flush and init can be put into the flush handling.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:59:15 UTC 2013


The following commit has been merged in the experimental branch:
commit 515bd00e65097dd0e629f74268abfbef422c714d
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Mon Feb 1 12:22:12 2010 +0000

    Insert a flush packet into the que on init, that way common code between
    flush and init can be put into the flush handling.
    
    Originally committed as revision 21589 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffplay.c b/ffplay.c
index 757c07e..8517e80 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list