mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
Allow NULL to be a valid value for factory->extensions.
Original commit message from CVS: Allow NULL to be a valid value for factory->extensions.
This commit is contained in:
parent
03f8740304
commit
16fccf325d
2 changed files with 7 additions and 4 deletions
|
@ -159,7 +159,8 @@ gst_type_find_factory_get_caps (const GstTypeFindFactory *factory)
|
||||||
*
|
*
|
||||||
* Gets the extensions associated with a typefind factory. The returned
|
* Gets the extensions associated with a typefind factory. The returned
|
||||||
* array should not be changed. If you need to change stuff in it, you should
|
* array should not be changed. If you need to change stuff in it, you should
|
||||||
* copy it using g_stdupv().
|
* copy it using g_stdupv(). This function may return NULL to indicate
|
||||||
|
* a 0-length list.
|
||||||
*
|
*
|
||||||
* Returns: a NULL-terminated array of extensions associated with this factory
|
* Returns: a NULL-terminated array of extensions associated with this factory
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1490,11 +1490,13 @@ gst_xml_registry_save_feature (GstXMLRegistry *xmlregistry, GstPluginFeature *fe
|
||||||
gst_xml_registry_save_caps (xmlregistry, factory->caps);
|
gst_xml_registry_save_caps (xmlregistry, factory->caps);
|
||||||
CLASS (xmlregistry)->save_func (xmlregistry, "</caps>\n");
|
CLASS (xmlregistry)->save_func (xmlregistry, "</caps>\n");
|
||||||
} */
|
} */
|
||||||
|
if (factory->extensions) {
|
||||||
while (factory->extensions[i]) {
|
while (factory->extensions[i]) {
|
||||||
PUT_ESCAPED ("extension", factory->extensions[i]);
|
PUT_ESCAPED ("extension", factory->extensions[i]);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (GST_IS_SCHEDULER_FACTORY (feature)) {
|
else if (GST_IS_SCHEDULER_FACTORY (feature)) {
|
||||||
PUT_ESCAPED ("longdesc", GST_SCHEDULER_FACTORY (feature)->longdesc);
|
PUT_ESCAPED ("longdesc", GST_SCHEDULER_FACTORY (feature)->longdesc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue