X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstpadtemplate.c;h=d7fe0a53d91ee42769a396a0bf55967885080755;hb=e234a10c635cb290fbab1284b3a86202e9fc124c;hp=d023bd0f2b4a85426f3306509a1b712f3479ad27;hpb=81ce8b76d0b31c130ea4a49ea10eb7718490ba6e;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c index d023bd0..d7fe0a5 100644 --- a/gst/gstpadtemplate.c +++ b/gst/gstpadtemplate.c @@ -272,17 +272,7 @@ name_is_valid (const gchar * name, GstPadPresence presence) return TRUE; } -GType -gst_static_pad_template_get_type (void) -{ - static GType staticpadtemplate_type = 0; - - if (G_UNLIKELY (staticpadtemplate_type == 0)) { - staticpadtemplate_type = - g_pointer_type_register_static ("GstStaticPadTemplate"); - } - return staticpadtemplate_type; -} +G_DEFINE_POINTER_TYPE (GstStaticPadTemplate, gst_static_pad_template); /** * gst_static_pad_template_get: @@ -325,7 +315,7 @@ gst_static_pad_template_get (GstStaticPadTemplate * pad_template) * Creates a new pad template with a name according to the given template * and with the given arguments. * - * Returns: (transfer full): a new #GstPadTemplate. + * Returns: (transfer floating): a new #GstPadTemplate. */ GstPadTemplate * gst_pad_template_new (const gchar * name_template,