tools/gst-launch.c: Fix use of uninitialized variable in the hypothetical case that...
authorTim-Philipp Müller <tim@centricular.net>
Sat, 13 May 2006 17:50:11 +0000 (17:50 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 13 May 2006 17:50:11 +0000 (17:50 +0000)
Original commit message from CVS:
* tools/gst-launch.c: (print_tag):
Fix use of uninitialized variable in the hypothetical
case that some broken plugin creates a GST_TAG_IMAGE
tag containing a NULL buffer (#341667).

ChangeLog
tools/gst-launch.c

index 3e2e779..1862e94 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-13  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * tools/gst-launch.c: (print_tag):
+         Fix use of uninitialized variable in the hypothetical
+         case that some broken plugin creates a GST_TAG_IMAGE
+         tag containing a NULL buffer (#341667).
+
 2006-05-12  Tim-Philipp Müller  <tim at centricular dot net>
 
        * tools/gst-launch.c: (print_tag):
index 002b7de..29f188a 100644 (file)
@@ -257,6 +257,8 @@ print_tag (const GstTagList * list, const gchar * tag, gpointer unused)
         str = g_strdup_printf ("buffer of %u bytes, type: %s",
             GST_BUFFER_SIZE (img), caps_str);
         g_free (caps_str);
+      } else {
+        str = g_strdup ("NULL buffer");
       }
     } else {
       str =