mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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:
parent
58cc2ede0a
commit
99867e9f16
2 changed files with 14 additions and 2 deletions
|
@ -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:
|
||||
|
|
10
gst/gsturi.c
10
gst/gsturi.c
|
@ -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);
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue