Browse Source

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
tags/v0.6
Michael Niedermayer 16 years ago
parent
commit
515bd00e65
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ffplay.c

+ 3
- 0
ffplay.c View File

@@ -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)


Loading…
Cancel
Save