mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tsdemux: fix program-number functionality
Setting the program-number property does not affect which program is actually being demuxed. Moving the initialization of the program_number from gst_ts_demux_reset to gst_ts_demux_init seems to fix this issue. https://bugzilla.gnome.org/show_bug.cgi?id=690934
This commit is contained in:
parent
e56efddd4a
commit
8e4f966018
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,6 @@ gst_ts_demux_reset (MpegTSBase * base)
|
||||||
{
|
{
|
||||||
GstTSDemux *demux = (GstTSDemux *) base;
|
GstTSDemux *demux = (GstTSDemux *) base;
|
||||||
|
|
||||||
demux->program_number = -1;
|
|
||||||
demux->calculate_update_segment = FALSE;
|
demux->calculate_update_segment = FALSE;
|
||||||
|
|
||||||
gst_segment_init (&demux->segment, GST_FORMAT_UNDEFINED);
|
gst_segment_init (&demux->segment, GST_FORMAT_UNDEFINED);
|
||||||
|
@ -342,6 +341,7 @@ gst_ts_demux_init (GstTSDemux * demux)
|
||||||
/* We are not interested in sections (all handled by mpegtsbase) */
|
/* We are not interested in sections (all handled by mpegtsbase) */
|
||||||
base->push_section = FALSE;
|
base->push_section = FALSE;
|
||||||
|
|
||||||
|
demux->program_number = -1;
|
||||||
gst_ts_demux_reset (base);
|
gst_ts_demux_reset (base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue