diff --git a/plugins/elements/gststreamiddemux.c b/plugins/elements/gststreamiddemux.c index 8528acb5e4..c9d99f1401 100644 --- a/plugins/elements/gststreamiddemux.c +++ b/plugins/elements/gststreamiddemux.c @@ -353,6 +353,7 @@ gst_streamid_demux_reset (GstStreamidDemux * demux) if (demux->active_srcpad != NULL) demux->active_srcpad = NULL; + demux->nb_srcpads = 0; GST_OBJECT_UNLOCK (demux); if (demux->stream_id_pairs != NULL) {