mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-16 13:00:41 +00:00
Don't free NULL caps
Original commit message from CVS: Don't free NULL caps
This commit is contained in:
parent
295e2f9009
commit
1641eadfa4
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit fcdc6ccbcc674dd487021d87a0313abf02bae396
|
||||
Subproject commit 9f37b3e515260c7b294222a502b2cc75dd0983b6
|
|
@ -336,7 +336,7 @@ gst_parse_free_link (link_t *link)
|
|||
g_slist_foreach (link->sink_pads, (GFunc) gst_parse_strfree, NULL);
|
||||
g_slist_free (link->src_pads);
|
||||
g_slist_free (link->sink_pads);
|
||||
gst_caps2_free (link->caps);
|
||||
if (link->caps) gst_caps2_free (link->caps);
|
||||
gst_parse_link_free (link);
|
||||
}
|
||||
static void
|
||||
|
@ -396,7 +396,7 @@ gst_parse_found_pad (GstElement *src, GstPad *pad, gpointer data)
|
|||
g_signal_handler_disconnect (src, link->signal_id);
|
||||
g_free (link->src_pad);
|
||||
g_free (link->sink_pad);
|
||||
gst_caps2_free (link->caps);
|
||||
if (link->caps) gst_caps2_free (link->caps);
|
||||
if (!gst_element_is_locked_state (src))
|
||||
gst_parse_element_lock (link->sink, FALSE);
|
||||
g_free (link);
|
||||
|
|
Loading…
Reference in a new issue