From ad161f7df51c05858be486af2c05c7923e9a4aa1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 12 Mar 2015 14:39:37 +0000 Subject: [PATCH] streamiddemux: Reset pad counter after removing all pads --- plugins/elements/gststreamiddemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/elements/gststreamiddemux.c b/plugins/elements/gststreamiddemux.c index 8528acb..c9d99f1 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) { -- 2.7.4