mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
700f5d074f
commit
2f152285da
2 changed files with 9 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue