diff --git a/gst-libs/gst/sdp/gstsdpmessage.c b/gst-libs/gst/sdp/gstsdpmessage.c index c3a11ad888..df6139ac6a 100644 --- a/gst-libs/gst/sdp/gstsdpmessage.c +++ b/gst-libs/gst/sdp/gstsdpmessage.c @@ -170,6 +170,9 @@ gst_sdp_message_boxed_copy (GstSDPMessage * orig) { GstSDPMessage *copy; + if (!orig) + return NULL; + if (gst_sdp_message_copy (orig, ©) == GST_SDP_OK) return copy;