From 7652df73524327e3f59c38bdcf420a84fc0dbcb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 13 Nov 2011 20:56:02 +0000 Subject: [PATCH] urihandler: fix return type of _get_uri_type() Return a GstURIType and not a plain guint. --- gst/gstelementfactory.c | 2 +- gst/gstelementfactory.h | 5 +++-- gst/gsturi.h | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 5c14a32..18431d0 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -557,7 +557,7 @@ gst_element_factory_get_static_pad_templates (GstElementFactory * factory) * * Returns: type of URIs this element supports */ -gint +GstURIType gst_element_factory_get_uri_type (GstElementFactory * factory) { g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), GST_URI_UNKNOWN); diff --git a/gst/gstelementfactory.h b/gst/gstelementfactory.h index 474af3b..a7ecec5 100644 --- a/gst/gstelementfactory.h +++ b/gst/gstelementfactory.h @@ -34,6 +34,7 @@ typedef struct _GstElementFactoryClass GstElementFactoryClass; #include #include #include +#include G_BEGIN_DECLS @@ -62,7 +63,7 @@ struct _GstElementFactory { guint numpadtemplates; /* URI interface stuff */ - guint uri_type; + GstURIType uri_type; gchar ** uri_protocols; GList * interfaces; /* interface type names this element implements */ @@ -88,7 +89,7 @@ const gchar * gst_element_factory_get_metadata (GstElementFacto guint gst_element_factory_get_num_pad_templates (GstElementFactory *factory); const GList * gst_element_factory_get_static_pad_templates (GstElementFactory *factory); -gint gst_element_factory_get_uri_type (GstElementFactory *factory); +GstURIType gst_element_factory_get_uri_type (GstElementFactory *factory); gchar ** gst_element_factory_get_uri_protocols (GstElementFactory *factory); gboolean gst_element_factory_has_interface (GstElementFactory *factory, diff --git a/gst/gsturi.h b/gst/gsturi.h index aedadc0..7435fc7 100644 --- a/gst/gsturi.h +++ b/gst/gsturi.h @@ -26,7 +26,6 @@ #include #include -#include G_BEGIN_DECLS @@ -144,7 +143,7 @@ GstElement * gst_element_make_from_uri (const GstURIType type, /* accessing the interface */ GType gst_uri_handler_get_type (void); -guint gst_uri_handler_get_uri_type (GstURIHandler * handler); +GstURIType gst_uri_handler_get_uri_type (GstURIHandler * handler); gchar ** gst_uri_handler_get_protocols (GstURIHandler * handler); gchar * gst_uri_handler_get_uri (GstURIHandler * handler); gboolean gst_uri_handler_set_uri (GstURIHandler * handler, -- 2.7.4