mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 02:51:10 +00:00
gstreamer: Propagate nullability changes into manual code
This commit is contained in:
parent
88321a4d61
commit
5afca49a7b
2 changed files with 6 additions and 10 deletions
|
@ -80,7 +80,8 @@ impl UniqueAdapter {
|
|||
}
|
||||
|
||||
pub fn copy_bytes(&self, offset: usize, size: usize) -> Result<glib::Bytes, glib::BoolError> {
|
||||
self.0.copy_bytes(offset, size)
|
||||
// TBD: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/298
|
||||
Ok(self.0.copy_bytes(offset, size))
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
|
|
|
@ -70,15 +70,10 @@ fn print_pad_capabilities(element: &gst::Element, pad_name: &str) {
|
|||
.expect("Could not retrieve pad");
|
||||
|
||||
println!("Caps for the {} pad:", pad_name);
|
||||
match pad.get_current_caps() {
|
||||
Some(caps) => {
|
||||
print_caps(&caps, " ");
|
||||
}
|
||||
None => {
|
||||
let caps = pad.query_caps(None).expect("Failed to query caps on pad");
|
||||
print_caps(&caps, " ");
|
||||
}
|
||||
}
|
||||
let caps = pad
|
||||
.get_current_caps()
|
||||
.unwrap_or_else(|| pad.query_caps(None));
|
||||
print_caps(&caps, " ");
|
||||
}
|
||||
|
||||
fn tutorial_main() {
|
||||
|
|
Loading…
Reference in a new issue