projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60fae51
)
ghostpad: ensure we build a ghost pad ..
author
Mathieu Duponchelle
<mathieu@centricular.com>
Thu, 1 Mar 2018 00:12:07 +0000
(
01:12
+0100)
committer
Mathieu Duponchelle
<mathieu@centricular.com>
Thu, 1 Mar 2018 00:12:07 +0000
(
01:12
+0100)
When we construct from a custom GType
gst/gstghostpad.c
patch
|
blob
|
history
diff --git
a/gst/gstghostpad.c
b/gst/gstghostpad.c
index
dd53122
..
90cae38
100644
(file)
--- a/
gst/gstghostpad.c
+++ b/
gst/gstghostpad.c
@@
-635,6
+635,8
@@
gst_ghost_pad_new_full (const gchar * name, GstPadDirection dir,
GST_PAD_TEMPLATE_GTYPE (templ) ==
G_TYPE_NONE ? GST_TYPE_GHOST_PAD : GST_PAD_TEMPLATE_GTYPE (templ);
+ g_return_val_if_fail (g_type_is_a (pad_type, GST_TYPE_GHOST_PAD), NULL);
+
ret = g_object_new (pad_type, "name", name,
"direction", dir, "template", templ, NULL);
} else {