Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-02-01 15:22:12 +0300
committerMichael Niedermayer <michaelni@gmx.at>2010-02-01 15:22:12 +0300
commit515bd00e65097dd0e629f74268abfbef422c714d (patch)
treef3a3ca829a9b282dd1da0abdf9e1e1dacf941a86 /ffplay.c
parent6c7d3ead79af2de091ff74cb2e29770882cbae99 (diff)
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
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 757c07e0ee..8517e80767 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)