+2008-02-29 Rene Stadler <mail@renestadler.de>
+
+ * gst/gsturi.c: (gst_uri_handler_get_protocols):
+ Use the get_protocols_full vfunc if get_protocols is NULL. Fixes
+ URIHandlers implemented using language bindings.
+
2008-02-29 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstelementfactory.h:
iface = GST_URI_HANDLER_GET_INTERFACE (handler);
g_return_val_if_fail (iface != NULL, NULL);
- g_return_val_if_fail (iface->get_protocols != NULL, NULL);
- ret = iface->get_protocols ();
+ g_return_val_if_fail (iface->get_protocols != NULL ||
+ iface->get_protocols_full != NULL, NULL);
+
+ if (iface->get_protocols != NULL) {
+ ret = iface->get_protocols ();
+ } else {
+ ret = iface->get_protocols_full (G_OBJECT_TYPE (handler));
+ }
g_return_val_if_fail (ret != NULL, NULL);
return ret;