Fixed gst-inspect so it doesn't core dump on Solaris.
authorBrian Cameron <brian.cameron@sun.com>
Wed, 25 Jun 2003 12:18:31 +0000 (12:18 +0000)
committerBrian Cameron <brian.cameron@sun.com>
Wed, 25 Jun 2003 12:18:31 +0000 (12:18 +0000)
Original commit message from CVS:
Fixed gst-inspect so it doesn't core dump on Solaris.

common
tools/gst-inspect.c

diff --git a/common b/common
index 9a3a505..4e37969 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 9a3a505fcc52865de0bedbb3ee1ce0a6dcc9a025
+Subproject commit 4e379694ae9ff9843d65cf08928642eea44abdf8
index 9281fa1..9512293 100644 (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",