gst-plugins-base: oggstream: initialize variable

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Tue Jan 17 09:19:43 PST 2012


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

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