diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-07-26 18:33:09 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-07-26 18:33:09 +0200 |
commit | a0de5e8a4f4a80c120f1ccd07b98225981d8d104 (patch) | |
tree | 76aa00b15a03573cf2e536f8ce0482168f2fbbbf | |
parent | 7055264e2e111a0a278c7023bd989e59426abaab (diff) |
matroskademux: initialize some variables to fix compiler warnings on OSX build bot
-rw-r--r-- | gst/matroska/matroska-demux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 2226aec59..071cff52f 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -2320,11 +2320,11 @@ gst_matroska_demux_move_to_entry (GstMatroskaDemux * demux, static GstMatroskaIndex * gst_matroska_demux_search_pos (GstMatroskaDemux * demux, GstClockTime time) { - GstMatroskaIndex *entry; + GstMatroskaIndex *entry = NULL; GstMatroskaDemuxState current_state; GstClockTime otime, prev_cluster_time, current_cluster_time, cluster_time; gint64 opos, newpos, startpos = 0, current_offset; - gint64 prev_cluster_offset, current_cluster_offset, cluster_offset; + gint64 prev_cluster_offset = -1, current_cluster_offset, cluster_offset; const guint chunk = 64 * 1024; GstBuffer *buf = NULL; GstFlowReturn ret; @@ -2452,7 +2452,7 @@ retry: demux->offset = newpos; demux->cluster_time = cluster_time = GST_CLOCK_TIME_NONE; while (1) { - guint64 cluster_size; + guint64 cluster_size = 0; /* peek and parse some elements */ ret = gst_matroska_demux_peek_id_length_pull (demux, &id, &length, &needed); |