matroskademux: Properly initialize from_offset and from_time
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 20 Jul 2012 13:18:21 +0000 (15:18 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 20 Jul 2012 13:33:04 +0000 (15:33 +0200)
gst/matroska/matroska-demux.c

index d570e67..b88a2fb 100644 (file)
@@ -556,6 +556,8 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
       GST_MATROSKA_TRACK_ENABLED | GST_MATROSKA_TRACK_DEFAULT |
       GST_MATROSKA_TRACK_LACING;
   context->last_flow = GST_FLOW_OK;
+  context->from_time = GST_CLOCK_TIME_NONE;
+  context->from_offset = -1;
   context->to_offset = G_MAXINT64;
   context->alignment = 1;
   demux->common.num_streams++;