Merge pull request #94 from seungha-yang/audio-discont

Set discont flag on the first audio buffer correctly
This commit is contained in:
Samuel Alonso Rodriguez 2022-02-28 19:15:10 +01:00 committed by GitHub
commit 83797e9df3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()