tools/gst-launch.c: Fix use of uninitialized variable in the hypothetical case that some broken plugin creates a GST_...

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).
This commit is contained in:
Tim-Philipp Müller 2006-05-13 17:50:11 +00:00
parent aa0515d436
commit ede8ab01eb
2 changed files with 9 additions and 0 deletions

View file

@ -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):

View 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 =