mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-26 09:50:39 +00:00
some debug additions and doc fixes
Original commit message from CVS: some debug additions and doc fixes
This commit is contained in:
parent
1944240a98
commit
ac320f6bcc
|
@ -106,7 +106,7 @@ get_type_for_mime (const gchar *mime)
|
||||||
* @mime: the mime type to attach to the capability
|
* @mime: the mime type to attach to the capability
|
||||||
* @props: the properties to add to this capability
|
* @props: the properties to add to this capability
|
||||||
*
|
*
|
||||||
* Create a new capability with the given mime typei and properties.
|
* Create a new capability with the given mime type and properties.
|
||||||
*
|
*
|
||||||
* Returns: a new capability
|
* Returns: a new capability
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -433,11 +433,23 @@ gboolean
|
||||||
gst_plugin_load (const gchar *name)
|
gst_plugin_load (const gchar *name)
|
||||||
{
|
{
|
||||||
GstPlugin *plugin;
|
GstPlugin *plugin;
|
||||||
|
GError *error = NULL;
|
||||||
|
|
||||||
plugin = gst_registry_pool_find_plugin (name);
|
plugin = gst_registry_pool_find_plugin (name);
|
||||||
if (plugin)
|
if (plugin)
|
||||||
return gst_plugin_load_plugin (plugin, NULL);
|
{
|
||||||
|
gboolean result = gst_plugin_load_plugin (plugin, &error);
|
||||||
|
if (error)
|
||||||
|
{
|
||||||
|
GST_DEBUG (GST_CAT_PLUGIN_LOADING, "load_plugin error: %s\n",
|
||||||
|
error->message);
|
||||||
|
g_error_free (error);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_DEBUG (GST_CAT_PLUGIN_LOADING, "Could not find %s in registry pool",
|
||||||
|
name);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -456,7 +468,7 @@ gst_library_load (const gchar *name)
|
||||||
gboolean res;
|
gboolean res;
|
||||||
|
|
||||||
/* for now this is the same */
|
/* for now this is the same */
|
||||||
res = gst_plugin_load(name);
|
res = gst_plugin_load (name);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
@ -377,7 +377,8 @@ gst_xml_registry_add_path_list_func (GstXMLRegistry *registry)
|
||||||
gssize size;
|
gssize size;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
context = g_markup_parse_context_new (&gst_xml_registry_paths_parser, 0, registry, NULL);
|
context = g_markup_parse_context_new (&gst_xml_registry_paths_parser, 0,
|
||||||
|
registry, NULL);
|
||||||
|
|
||||||
if (! (reg = fopen (registry->location, "r"))) {
|
if (! (reg = fopen (registry->location, "r"))) {
|
||||||
return;
|
return;
|
||||||
|
@ -392,7 +393,8 @@ gst_xml_registry_add_path_list_func (GstXMLRegistry *registry)
|
||||||
g_markup_parse_context_parse (context, text, size, &error);
|
g_markup_parse_context_parse (context, text, size, &error);
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
fprintf(stderr, "ERROR: parsing registry: %s\n", error->message);
|
fprintf (stderr, "ERROR: parsing registry %s: %s\n",
|
||||||
|
registry->location, error->message);
|
||||||
g_free (text);
|
g_free (text);
|
||||||
fclose (reg);
|
fclose (reg);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue