mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-03 00:36:30 +00:00
Merge pull request #94 from seungha-yang/audio-discont
Set discont flag on the first audio buffer correctly
This commit is contained in:
commit
83797e9df3
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