uri: Add some debug statements

This commit is contained in:
Edward Hervey 2012-05-22 18:27:36 +02:00
parent 50f2e03977
commit 16d96f71da

View file

@ -604,6 +604,8 @@ gst_element_make_from_uri (const GstURIType type, const gchar * uri,
g_return_val_if_fail (GST_URI_TYPE_IS_VALID (type), NULL);
g_return_val_if_fail (gst_uri_is_valid (uri), NULL);
GST_DEBUG ("type:%d, uri:%s, elementname:%s", type, uri, elementname);
protocol = gst_uri_get_protocol (uri);
possibilities = get_element_factories_from_uri_protocol (type, protocol);
g_free (protocol);
@ -624,6 +626,7 @@ gst_element_make_from_uri (const GstURIType type, const gchar * uri,
if (gst_uri_handler_set_uri (handler, uri))
break;
GST_WARNING ("element %s didn't accept the URI", GST_ELEMENT_NAME (ret));
gst_object_unref (ret);
ret = NULL;
}