gst/gsturi.c: Use the get_protocols_full vfunc if get_protocols is NULL. Fixes

Original commit message from CVS:
* 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.
This commit is contained in:
Rene Stadler 2008-02-29 14:23:17 +00:00
parent 58cc2ede0a
commit 99867e9f16
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,9 @@
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:

View file

@ -662,8 +662,14 @@ gst_uri_handler_get_protocols (GstURIHandler * handler)
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);
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;