mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +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 {
|
match fn {
|
||||||
copy => |ptr| {
|
copy => |ptr| {
|
||||||
let mut copy = ptr::null_mut();
|
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
|
copy
|
||||||
},
|
},
|
||||||
free => |ptr| {
|
free => |ptr| {
|
||||||
|
|
Loading…
Reference in a new issue