Skip to content

Commit 5e2815c

Browse files
committed
DeckLink cap.: don't capture audio if nosig
affects c1a1f83, 64ecc16 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.
1 parent 395cb24 commit 5e2815c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_capture/decklink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ VideoDelegate::VideoInputFrameArrived (IDeckLinkVideoInputFrame *videoFrame, IDe
380380
s->frameRateScale);
381381
}
382382

383-
if (audioPacket) {
383+
if (audioPacket && !nosig) {
384384
if (s->audioPackets.size() < MAX_AUDIO_PACKETS) {
385385
audioPacket->AddRef();
386386
s->audioPackets.push(audioPacket);

0 commit comments

Comments
 (0)