From 2f152285da76d0a08613d20bc23f21ede795425a Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 28 Apr 2006 13:43:03 +0000 Subject: [PATCH] plugins/elements/gsttypefindelement.c: If we get EOS before any data is accumulated, don't use uninitialised local va... Original commit message from CVS: * plugins/elements/gsttypefindelement.c: (gst_type_find_element_handle_event): If we get EOS before any data is accumulated, don't use uninitialised local variables. --- ChangeLog | 7 +++++++ plugins/elements/gsttypefindelement.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ed961b8b22..5fe0a9d771 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-04-28 Michael Smith + + * plugins/elements/gsttypefindelement.c: + (gst_type_find_element_handle_event): + If we get EOS before any data is accumulated, don't use + uninitialised local variables. + 2006-04-28 Michael Smith * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event), diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index 17e7cdb156..b1ef91107d 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -466,8 +466,8 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event) case MODE_TYPEFIND: switch (GST_EVENT_TYPE (event)) { case GST_EVENT_EOS:{ - GstTypeFindProbability prob; - GstCaps *caps; + GstTypeFindProbability prob = 0; + GstCaps *caps = NULL; GST_INFO_OBJECT (typefind, "Got EOS and no type found yet");