mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-26 18:10:35 +00:00
sdp/sdp_media: Add missing failure check for gst_sdp_media_copy
This commit is contained in:
parent
3c610e12e5
commit
14f7707b51
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ glib::wrapper! {
|
|||
match fn {
|
||||
copy => |ptr| {
|
||||
let mut copy = ptr::null_mut();
|
||||
ffi::gst_sdp_media_copy(ptr as *const ffi::GstSDPMedia, &mut copy);
|
||||
assert_eq!(ffi::gst_sdp_media_copy(ptr, &mut copy), ffi::GST_SDP_OK);
|
||||
copy
|
||||
},
|
||||
free => |ptr| {
|
||||
|
|
Loading…
Reference in a new issue