mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
pad: fix mixed declarations
This commit is contained in:
parent
9774b3775d
commit
60fae518b0
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue