mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-12 05:06:29 +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;
|
first_frame = false;
|
||||||
let mut buffer = receiver.create_audio_buffer_and_info(&element, frame);
|
let mut buffer = receiver.create_audio_buffer_and_info(&element, frame);
|
||||||
if first_audio_frame {
|
if first_audio_frame {
|
||||||
if let Ok(Buffer::Video(ref mut buffer, _)) = buffer {
|
if let Ok(Buffer::Audio(ref mut buffer, _)) = buffer {
|
||||||
buffer
|
buffer
|
||||||
.get_mut()
|
.get_mut()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
|
Loading…
Reference in a new issue