mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue