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

Function ff_decklink_packet_queue_flush

libavdevice/decklink_common.cpp:407–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void ff_decklink_packet_queue_flush(DecklinkPacketQueue *q)
408{
409 AVPacket pkt;
410
411 pthread_mutex_lock(&q->mutex);
412 while (avpriv_packet_list_get(&q->pkt_list, &pkt) == 0) {
413 av_packet_unref(&pkt);
414 }
415 q->nb_packets = 0;
416 q->size = 0;
417 pthread_mutex_unlock(&q->mutex);
418}
419
420void ff_decklink_packet_queue_end(DecklinkPacketQueue *q)
421{

Callers 1

Calls 4

avpriv_packet_list_getFunction · 0.85
av_packet_unrefFunction · 0.85
pthread_mutex_lockFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by

no test coverage detected