mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
matroskamux/demux: initialize dts_only
https://bugzilla.gnome.org/show_bug.cgi?id=745192
This commit is contained in:
parent
09b8f0efc3
commit
e676b8ba9c
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue