diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-03-01 01:09:48 +0100 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2018-03-01 01:09:48 +0100 |
commit | 60fae518b00d88fea7f6fda5c2d2eb453b42ae3d (patch) | |
tree | 25ff2155ed3cb918eedb913565e6cb8757951ad2 /gst | |
parent | 9774b3775d8483e5697f9196a26c1e5831113bd6 (diff) |
pad: fix mixed declarations
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gstpad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c index 229f3dd0c..47cace990 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -863,11 +863,12 @@ gst_pad_new (const gchar * name, GstPadDirection direction) GstPad * gst_pad_new_from_template (GstPadTemplate * templ, const gchar * name) { - g_return_val_if_fail (GST_IS_PAD_TEMPLATE (templ), NULL); GType pad_type = GST_PAD_TEMPLATE_GTYPE (templ) == G_TYPE_NONE ? GST_TYPE_PAD : GST_PAD_TEMPLATE_GTYPE (templ); + g_return_val_if_fail (GST_IS_PAD_TEMPLATE (templ), NULL); + return g_object_new (pad_type, "name", name, "direction", templ->direction, "template", templ, NULL); } |