matroskamux/demux: initialize dts_only

https://bugzilla.gnome.org/show_bug.cgi?id=745192
This commit is contained in:
Nicola Murino 2015-02-26 23:41:47 +01:00 committed by Sebastian Dröge
parent 09b8f0efc3
commit e676b8ba9c
2 changed files with 2 additions and 0 deletions

View file

@ -432,6 +432,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
context->from_offset = -1; context->from_offset = -1;
context->to_offset = G_MAXINT64; context->to_offset = G_MAXINT64;
context->alignment = 1; context->alignment = 1;
context->dts_only = FALSE;
demux->common.num_streams++; demux->common.num_streams++;
g_assert (demux->common.src->len == demux->common.num_streams); g_assert (demux->common.src->len == demux->common.num_streams);

View file

@ -2299,6 +2299,7 @@ gst_matroska_mux_request_new_pad (GstElement * element,
collect_pad->track = context; collect_pad->track = context;
gst_matroska_pad_reset (collect_pad, FALSE); gst_matroska_pad_reset (collect_pad, FALSE);
collect_pad->track->codec_id = id; collect_pad->track->codec_id = id;
collect_pad->track->dts_only = FALSE;
collect_pad->capsfunc = capsfunc; collect_pad->capsfunc = capsfunc;
gst_pad_set_active (GST_PAD (newpad), TRUE); gst_pad_set_active (GST_PAD (newpad), TRUE);