[0.10] gst-plugins-base: oggstream: initialize variable

Tim Müller tpm at kemper.freedesktop.org
Tue Jan 17 18:02:22 PST 2012


Module: gst-plugins-base
Branch: 0.10
Commit: f165e1dd0854a6ab8528d7f2cf1b4cf7cfbede3b
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=f165e1dd0854a6ab8528d7f2cf1b4cf7cfbede3b

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Tue Jan 17 18:19:30 2012 +0100

oggstream: initialize variable

... to help out challenged compiler.

---

 ext/ogg/gstoggstream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/ogg/gstoggstream.c b/ext/ogg/gstoggstream.c
index 7d0b39d..0e9debc 100644
--- a/ext/ogg/gstoggstream.c
+++ b/ext/ogg/gstoggstream.c
@@ -1896,7 +1896,7 @@ packet_duration_opus (GstOggStream * pad, ogg_packet * packet)
 
   gint64 duration;
   gint64 frame_duration;
-  gint nframes;
+  gint nframes = 0;
   guint8 toc;
 
   if (packet->bytes < 1)



More information about the gstreamer-commits mailing list