sdp/message: fix segfault copying NULL in the boxed copy impl
Allows passing NULL as a value to g_object_set and as signal parameters without crashing.
This commit is contained in:
parent
32ef8f54d4
commit
fa243654cf
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user