Commit 9a01c9c3 authored by michael's avatar michael

Insert a flush packet into the que on init, that way common code between

flush and init can be put into the flush handling.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21589 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9c0a70ee
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment