From ede8ab01eb84d4680f4ecc9974f627ff371c4e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 13 May 2006 17:50:11 +0000 Subject: [PATCH] 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). --- ChangeLog | 7 +++++++ tools/gst-launch.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3e2e779942..1862e94913 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-05-13 Tim-Philipp Müller + + * 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 * tools/gst-launch.c: (print_tag): diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 002b7dee57..29f188a96f 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -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 =