mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
gst/gstregistryxml.c: Print a warning rather than g_assert() if a plugin feature is a URI handler but returns no prot...
Original commit message from CVS: * gst/gstregistryxml.c: (gst_registry_xml_save_feature): Print a warning rather than g_assert() if a plugin feature is a URI handler but returns no protocols (#353976).
This commit is contained in:
parent
d922c9780f
commit
3a6b921f63
2 changed files with 19 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-09-03 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/gstregistryxml.c: (gst_registry_xml_save_feature):
|
||||
Print a warning rather than g_assert() if a plugin feature
|
||||
is a URI handler but returns no protocols (#353976).
|
||||
|
||||
2006-09-02 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* docs/random/moving-plugins:
|
||||
|
|
|
@ -717,18 +717,22 @@ gst_registry_xml_save_feature (GstRegistry * registry,
|
|||
}
|
||||
|
||||
if (GST_URI_TYPE_IS_VALID (factory->uri_type)) {
|
||||
gchar **protocol;
|
||||
|
||||
if (!gst_registry_save_escaped (registry, " ", "uri_type",
|
||||
factory->uri_type == GST_URI_SINK ? "sink" : "source"))
|
||||
return FALSE;
|
||||
g_assert (factory->uri_protocols);
|
||||
protocol = factory->uri_protocols;
|
||||
while (*protocol) {
|
||||
if (!gst_registry_save_escaped (registry, " ", "uri_protocol",
|
||||
*protocol))
|
||||
return FALSE;
|
||||
protocol++;
|
||||
if (factory->uri_protocols) {
|
||||
gchar **protocol;
|
||||
|
||||
protocol = factory->uri_protocols;
|
||||
while (*protocol) {
|
||||
if (!gst_registry_save_escaped (registry, " ", "uri_protocol",
|
||||
*protocol))
|
||||
return FALSE;
|
||||
protocol++;
|
||||
}
|
||||
} else {
|
||||
g_warning ("GStreamer feature '%s' is URI handler but does not provide"
|
||||
" any protocols it can handle", feature->name);
|
||||
}
|
||||
}
|
||||
} else if (GST_IS_TYPE_FIND_FACTORY (feature)) {
|
||||
|
|
Loading…
Reference in a new issue