From 5e2815c128ab4dda85765c118d96c57b14f22959 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 23 Oct 2023 15:40:59 +0200 Subject: [PATCH] DeckLink cap.: don't capture audio if nosig affects c1a1f83b, 64ecc161 Now audio frames are discarded unless if video signal is not detected, this doesn't affect situations when just the audio frame is passed. This refers to GH-347, because it drops the audio frames that are produced prior signal is detected. Calling IDeckLinkInput::EnableVideoInput restart timestamps. --- src/video_capture/decklink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_capture/decklink.cpp b/src/video_capture/decklink.cpp index 71d6db26e..d33d0d702 100644 --- a/src/video_capture/decklink.cpp +++ b/src/video_capture/decklink.cpp @@ -380,7 +380,7 @@ VideoDelegate::VideoInputFrameArrived (IDeckLinkVideoInputFrame *videoFrame, IDe s->frameRateScale); } - if (audioPacket) { + if (audioPacket && !nosig) { if (s->audioPackets.size() < MAX_AUDIO_PACKETS) { audioPacket->AddRef(); s->audioPackets.push(audioPacket);