summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-05-01 11:06:53 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-05-01 11:15:04 +0100
commitfa4b2938bc972dd8290e714557547c194b37e468 (patch)
tree1b679fbe3591f6792ba4f0304b7ab3167a190c23
parent1df1d34fe1a81085b068e0e05fa2534e0fb6ea8e (diff)
matroska: init variable to avoid compiler warning on OSX
Fixes (bogus) "'offset' may be used uninitialized in this function" warning on build bot (also spotted by philn).
-rw-r--r--gst/matroska/matroska-demux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 7feda07ae..97c24380d 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -2435,8 +2435,8 @@ gst_matroska_demux_handle_seek_push (GstMatroskaDemux * demux, GstPad * pad,
/* check for having parsed index already */
if (!demux->index_parsed) {
- guint64 offset;
gboolean building_index;
+ guint64 offset = 0;
if (!demux->index_offset) {
GST_DEBUG_OBJECT (demux, "no index (location); no seek in push mode");