Fixed gst-inspect so it doesn't core dump on Solaris.

Original commit message from CVS:
Fixed gst-inspect so it doesn't core dump on Solaris.
This commit is contained in:
Brian Cameron 2003-06-25 12:18:31 +00:00
parent b157e76e61
commit 30438fd472
2 changed files with 7 additions and 3 deletions

2
common

@ -1 +1 @@
Subproject commit 9a3a505fcc52865de0bedbb3ee1ce0a6dcc9a025
Subproject commit 4e379694ae9ff9843d65cf08928642eea44abdf8

View file

@ -835,8 +835,12 @@ print_element_list (void)
GstTypeFactory *factory;
factory = GST_TYPE_FACTORY (feature);
g_print ("%s type: %s: %s\n", plugin->name,
factory->mime, factory->exts);
if (factory->exts)
g_print ("%s type: %s: %s\n", plugin->name,
factory->mime, factory->exts);
else
g_print ("%s type: %s: N/A\n", plugin->name,
factory->mime);
if (factory->typefindfunc)
g_print (" Has typefind function: %s\n",