diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com> | 2020-09-23 17:04:55 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-10-29 17:54:30 +0000 |
commit | 33a4ab0abd29ab879aca54f46dd1b80499a1cfce (patch) | |
tree | c15a441d9bc552fc9108b1882aff30e12a10f903 | |
parent | ff6871f0c139e31f060ec9ce53402e4841883bd6 (diff) | |
download | gstreamer-plugins-bad-33a4ab0abd29ab879aca54f46dd1b80499a1cfce.tar.gz |
mpegtsmux: Restore intervals when creating TsMux
Otherwise the settings from the properties would be overwritten with
the defaults.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1733>
-rw-r--r-- | gst/mpegtsmux/gstbasetsmux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/mpegtsmux/gstbasetsmux.c b/gst/mpegtsmux/gstbasetsmux.c index f4fc33804..6e66f4d87 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; } |