matroskademux: Properly initialize from_offset and from_time

This commit is contained in:
Sebastian Dröge 2012-07-20 15:18:21 +02:00
parent b02034dda1
commit 9a83a0749e

View 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_ENABLED | GST_MATROSKA_TRACK_DEFAULT |
GST_MATROSKA_TRACK_LACING; GST_MATROSKA_TRACK_LACING;
context->last_flow = GST_FLOW_OK; context->last_flow = GST_FLOW_OK;
context->from_time = GST_CLOCK_TIME_NONE;
context->from_offset = -1;
context->to_offset = G_MAXINT64; context->to_offset = G_MAXINT64;
context->alignment = 1; context->alignment = 1;
demux->common.num_streams++; demux->common.num_streams++;