X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=inline;f=mixer.cpp;h=ce00bd41a3454fbfaa579349fa4f4b75c59a6beb;hb=2d4fd36955368bc01092a9698314ff404693b105;hp=9c07dc5002b09c6d9cf6b99648e889c0c9b93b37;hpb=cfff356a1739a0ed600c34e2de7eb64150ddf94d;p=nageru diff --git a/mixer.cpp b/mixer.cpp index 9c07dc5..ce00bd4 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -729,7 +729,9 @@ void Mixer::bm_frame(unsigned card_index, uint16_t timecode, } while (!success); } - audio_mixer.add_audio(device, audio_frame.data + audio_offset, num_samples, audio_format, frame_length, audio_frame.received_timestamp); + if (num_samples > 0) { + audio_mixer.add_audio(device, audio_frame.data + audio_offset, num_samples, audio_format, frame_length, audio_frame.received_timestamp); + } // Done with the audio, so release it. if (audio_frame.owner) {