Skip to content

Commit

Permalink
DeckLink cap.: don't capture audio if nosig
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MartinPulec committed Oct 23, 2023
1 parent 395cb24 commit 5e2815c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_capture/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5e2815c

Please sign in to comment.