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

Function packet_queue_flush

ffplay.c:296–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296static void packet_queue_flush(PacketQueue *q)
297{
298 AVPacketList *pkt, *pkt1;
299
300 SDL_LockMutex(q->mutex);
301 for(pkt = q->first_pkt; pkt != NULL; pkt = pkt1) {
302 pkt1 = pkt->next;
303 av_free_packet(&pkt->pkt);
304 av_freep(&pkt);
305 }
306 q->last_pkt = NULL;
307 q->first_pkt = NULL;
308 q->nb_packets = 0;
309 q->size = 0;
310 SDL_UnlockMutex(q->mutex);
311}
312
313static void packet_queue_end(PacketQueue *q)
314{

Callers 2

packet_queue_endFunction · 0.85
decode_threadFunction · 0.85

Calls 2

av_free_packetFunction · 0.85
av_freepFunction · 0.85

Tested by

no test coverage detected