mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
Check caps for NULL before copying
Original commit message from CVS: Check caps for NULL before copying
This commit is contained in:
parent
473c2e6446
commit
f94d6d1d47
1 changed files with 5 additions and 1 deletions
|
@ -423,7 +423,11 @@ gst_parse_perform_delayed_link (GstElement *src, const gchar *src_pad,
|
||||||
data->src_pad = g_strdup (src_pad);
|
data->src_pad = g_strdup (src_pad);
|
||||||
data->sink = sink;
|
data->sink = sink;
|
||||||
data->sink_pad = g_strdup (sink_pad);
|
data->sink_pad = g_strdup (sink_pad);
|
||||||
|
if (caps) {
|
||||||
data->caps = gst_caps_copy (caps);
|
data->caps = gst_caps_copy (caps);
|
||||||
|
} else {
|
||||||
|
data->caps = NULL;
|
||||||
|
}
|
||||||
data->signal_id = g_signal_connect (G_OBJECT (src), "new_pad",
|
data->signal_id = g_signal_connect (G_OBJECT (src), "new_pad",
|
||||||
G_CALLBACK (gst_parse_found_pad), data);
|
G_CALLBACK (gst_parse_found_pad), data);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue