mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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>
|
2006-04-28 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_event),
|
* 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:
|
case MODE_TYPEFIND:
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_EOS:{
|
case GST_EVENT_EOS:{
|
||||||
GstTypeFindProbability prob;
|
GstTypeFindProbability prob = 0;
|
||||||
GstCaps *caps;
|
GstCaps *caps = NULL;
|
||||||
|
|
||||||
GST_INFO_OBJECT (typefind, "Got EOS and no type found yet");
|
GST_INFO_OBJECT (typefind, "Got EOS and no type found yet");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue