mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-22 18:16:28 +00:00
Update for gst::BufferList
API changes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1610>
This commit is contained in:
parent
aaccc6e7f1
commit
f68655b5e2
4 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@ fn main() -> Result<(), Error> {
|
|||
drop(map);
|
||||
|
||||
// Remove the header from the buffer list
|
||||
buffer_list.make_mut().remove(0, 1);
|
||||
buffer_list.make_mut().remove(0..1);
|
||||
|
||||
// If the list is now empty then it only contained the media header and nothing
|
||||
// else.
|
||||
|
|
|
@ -267,7 +267,7 @@ fn setup_appsink(appsink: &gst_app::AppSink, name: &str, path: &Path, is_video:
|
|||
drop(map);
|
||||
|
||||
// Remove the header from the buffer list
|
||||
buffer_list.make_mut().remove(0, 1);
|
||||
buffer_list.make_mut().remove(0..1);
|
||||
|
||||
// If the list is now empty then it only contained the media header and nothing
|
||||
// else.
|
||||
|
|
|
@ -170,7 +170,7 @@ fn setup_appsink(appsink: &gst_app::AppSink, name: &str, path: &Path, is_video:
|
|||
drop(map);
|
||||
|
||||
// Remove the header from the buffer list
|
||||
buffer_list.make_mut().remove(0, 1);
|
||||
buffer_list.make_mut().remove(0..1);
|
||||
|
||||
// If the list is now empty then it only contained the media header and nothing
|
||||
// else.
|
||||
|
|
|
@ -475,7 +475,7 @@ impl HlsCmafSink {
|
|||
|
||||
drop(map);
|
||||
|
||||
buffer_list.make_mut().remove(0, 1);
|
||||
buffer_list.make_mut().remove(0..1);
|
||||
if buffer_list.is_empty() {
|
||||
return Ok(gst::FlowSuccess::Ok);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue