matroskamux/demux: initialize dts_only
authorNicola Murino <nicola.murino@gmail.com>
Thu, 26 Feb 2015 22:41:47 +0000 (23:41 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 27 Feb 2015 07:56:06 +0000 (09:56 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=745192

gst/matroska/matroska-demux.c
gst/matroska/matroska-mux.c

index 3199540..06330c1 100644 (file)
@@ -432,6 +432,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
   context->from_offset = -1;
   context->to_offset = G_MAXINT64;
   context->alignment = 1;
+  context->dts_only = FALSE;
   demux->common.num_streams++;
   g_assert (demux->common.src->len == demux->common.num_streams);
 
index e55cd38..d446730 100644 (file)
@@ -2299,6 +2299,7 @@ gst_matroska_mux_request_new_pad (GstElement * element,
   collect_pad->track = context;
   gst_matroska_pad_reset (collect_pad, FALSE);
   collect_pad->track->codec_id = id;
+  collect_pad->track->dts_only = FALSE;
 
   collect_pad->capsfunc = capsfunc;
   gst_pad_set_active (GST_PAD (newpad), TRUE);