MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / packet_queue_flush

Function packet_queue_flush

fftools/ffplay.c:492–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492static void packet_queue_flush(PacketQueue *q)
493{
494 MyAVPacketList pkt1;
495
496 SDL_LockMutex(q->mutex);
497 while (av_fifo_read(q->pkt_list, &pkt1, 1) >= 0)
498 av_packet_free(&pkt1.pkt);
499 q->nb_packets = 0;
500 q->size = 0;
501 q->duration = 0;
502 q->serial++;
503 SDL_UnlockMutex(q->mutex);
504}
505
506static void packet_queue_destroy(PacketQueue *q)
507{

Callers 3

packet_queue_destroyFunction · 0.85
decoder_abortFunction · 0.85
read_threadFunction · 0.85

Calls 2

av_fifo_readFunction · 0.85
av_packet_freeFunction · 0.85

Tested by

no test coverage detected