diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-01 12:22:12 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-01 12:22:12 +0000 |
commit | 515bd00e65097dd0e629f74268abfbef422c714d (patch) | |
tree | f3a3ca829a9b282dd1da0abdf9e1e1dacf941a86 /ffplay.c | |
parent | 6c7d3ead79af2de091ff74cb2e29770882cbae99 (diff) | |
download | ffmpeg-515bd00e65097dd0e629f74268abfbef422c714d.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |