You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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
This commit is contained in:
3
ffplay.c
3
ffplay.c
@@ -239,12 +239,15 @@ static AVPacket flush_pkt;
|
|||||||
|
|
||||||
static SDL_Surface *screen;
|
static SDL_Surface *screen;
|
||||||
|
|
||||||
|
static int packet_queue_put(PacketQueue *q, AVPacket *pkt);
|
||||||
|
|
||||||
/* packet queue handling */
|
/* packet queue handling */
|
||||||
static void packet_queue_init(PacketQueue *q)
|
static void packet_queue_init(PacketQueue *q)
|
||||||
{
|
{
|
||||||
memset(q, 0, sizeof(PacketQueue));
|
memset(q, 0, sizeof(PacketQueue));
|
||||||
q->mutex = SDL_CreateMutex();
|
q->mutex = SDL_CreateMutex();
|
||||||
q->cond = SDL_CreateCond();
|
q->cond = SDL_CreateCond();
|
||||||
|
packet_queue_put(q, &flush_pkt);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void packet_queue_flush(PacketQueue *q)
|
static void packet_queue_flush(PacketQueue *q)
|
||||||
|
Reference in New Issue
Block a user