summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-03-12 14:39:37 +0000
committerSebastian Dröge <sebastian@centricular.com>2015-03-12 14:42:18 +0000
commitad161f7df51c05858be486af2c05c7923e9a4aa1 (patch)
treedc15da7b916a43bab1d413790b4af81acc72820d
parentfadabe8b787d53c90dc06e1fcdaff3f2f04e990c (diff)
streamiddemux: Reset pad counter after removing all pads
-rw-r--r--plugins/elements/gststreamiddemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/elements/gststreamiddemux.c b/plugins/elements/gststreamiddemux.c
index 8528acb5e..c9d99f140 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) {