[0.11] gst-plugins-good: flv: Fix unitialized variables

Edward Hervey bilboed at kemper.freedesktop.org
Wed Jan 25 08:02:20 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 03b9966bc0f5761e87451f745a43804eb18b4700
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=03b9966bc0f5761e87451f745a43804eb18b4700

Author: Edward Hervey <edward.hervey at collabora.co.uk>
Date:   Wed Jan 25 16:58:12 2012 +0100

flv: Fix unitialized variables

(or rather circumvent issues with naive compilers ...)

---

 gst/flv/gstflvdemux.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 523317e..af51773 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -127,7 +127,7 @@ gst_flv_demux_parse_and_add_index_entry (GstFlvDemux * demux, GstClockTime ts,
 
   if (entry) {
 #ifndef GST_DISABLE_GST_DEBUG
-    gint64 time;
+    gint64 time = 0;
     gboolean key;
 
     gst_index_entry_assoc_map (entry, GST_FORMAT_TIME, &time);
@@ -2197,7 +2197,7 @@ gst_flv_demux_seek_to_prev_keyframe (GstFlvDemux * demux)
         GST_FORMAT_BYTES, demux->from_offset - 1);
 
   if (entry) {
-    gint64 bytes, time;
+    gint64 bytes = 0, time = 0;
 
     gst_index_entry_assoc_map (entry, GST_FORMAT_BYTES, &bytes);
     gst_index_entry_assoc_map (entry, GST_FORMAT_TIME, &time);



More information about the gstreamer-commits mailing list