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.
This commit is contained in:
Michael Smith 2006-04-28 13:43:03 +00:00
parent 700f5d074f
commit 2f152285da
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2006-04-28 Michael Smith <msmith@fluendo.com>
* 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 <msmith@fluendo.com>
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),

View file

@ -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");