sdp/sdp_media: Add missing failure check for gst_sdp_media_copy

This commit is contained in:
Marijn Suijten 2021-01-07 23:00:16 +01:00
parent 3c610e12e5
commit 14f7707b51

View file

@ -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| {