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

Function ff_decklink_packet_queue_peekpts

libavdevice/decklink_common.cpp:492–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492int64_t ff_decklink_packet_queue_peekpts(DecklinkPacketQueue *q)
493{
494 PacketListEntry *pkt1;
495 int64_t pts = -1;
496
497 pthread_mutex_lock(&q->mutex);
498 pkt1 = q->pkt_list.head;
499 if (pkt1) {
500 pts = pkt1->pkt.pts;
501 }
502 pthread_mutex_unlock(&q->mutex);
503
504 return pts;
505}
506
507
508int ff_decklink_list_devices(AVFormatContext *avctx,

Callers 1

decklink_construct_vancFunction · 0.85

Calls 2

pthread_mutex_lockFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by

no test coverage detected