mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-29 13:30:34 +00:00
Set discont flag on the first audio buffer correctly
Fixing typo which should check audio buffer not video
This commit is contained in:
parent
1d5089dfa7
commit
b682833cca
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue