Set discont flag on the first audio buffer correctly

Fixing typo which should check audio buffer not video
This commit is contained in:
Seungha Yang 2022-02-28 22:16:01 +09:00
parent 1d5089dfa7
commit b682833cca

View file

@ -704,7 +704,7 @@ impl Receiver {
first_frame = false;
let mut buffer = receiver.create_audio_buffer_and_info(&element, frame);
if first_audio_frame {
if let Ok(Buffer::Video(ref mut buffer, _)) = buffer {
if let Ok(Buffer::Audio(ref mut buffer, _)) = buffer {
buffer
.get_mut()
.unwrap()