Update for gst::BufferList API changes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1610>
This commit is contained in:
Sebastian Dröge 2024-06-08 09:58:10 +03:00
parent aaccc6e7f1
commit f68655b5e2
4 changed files with 4 additions and 4 deletions

View file

@ -86,7 +86,7 @@ fn main() -> Result<(), Error> {
drop(map); drop(map);
// Remove the header from the buffer list // 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 // If the list is now empty then it only contained the media header and nothing
// else. // else.

View file

@ -267,7 +267,7 @@ fn setup_appsink(appsink: &gst_app::AppSink, name: &str, path: &Path, is_video:
drop(map); drop(map);
// Remove the header from the buffer list // 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 // If the list is now empty then it only contained the media header and nothing
// else. // else.

View file

@ -170,7 +170,7 @@ fn setup_appsink(appsink: &gst_app::AppSink, name: &str, path: &Path, is_video:
drop(map); drop(map);
// Remove the header from the buffer list // 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 // If the list is now empty then it only contained the media header and nothing
// else. // else.

View file

@ -475,7 +475,7 @@ impl HlsCmafSink {
drop(map); drop(map);
buffer_list.make_mut().remove(0, 1); buffer_list.make_mut().remove(0..1);
if buffer_list.is_empty() { if buffer_list.is_empty() {
return Ok(gst::FlowSuccess::Ok); return Ok(gst::FlowSuccess::Ok);
} }