From: Jan Alexander Steffens (heftig) Date: Wed, 23 Sep 2020 15:04:55 +0000 (+0200) Subject: mpegtsmux: Restore intervals when creating TsMux X-Git-Tag: 1.19.3~507^2~1362 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a1b56a0e07ff29974f07d6fbdf2b724cc68b8c5;p=platform%2Fupstream%2Fgstreamer.git mpegtsmux: Restore intervals when creating TsMux Otherwise the settings from the properties would be overwritten with the defaults. Part-of: --- diff --git a/gst/mpegtsmux/gstbasetsmux.c b/gst/mpegtsmux/gstbasetsmux.c index f4fc338..6e66f4d 100644 --- a/gst/mpegtsmux/gstbasetsmux.c +++ b/gst/mpegtsmux/gstbasetsmux.c @@ -1900,7 +1900,10 @@ gst_base_ts_mux_default_create_ts_mux (GstBaseTsMux * mux) TsMux *tsmux = tsmux_new (); tsmux_set_write_func (tsmux, new_packet_cb, mux); tsmux_set_alloc_func (tsmux, alloc_packet_cb, mux); + tsmux_set_pat_interval (tsmux, mux->pat_interval); + tsmux_set_si_interval (tsmux, mux->si_interval); tsmux_set_bitrate (tsmux, mux->bitrate); + tsmux_set_pcr_interval (tsmux, mux->pcr_interval); return tsmux; }