summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-03-12 14:39:37 (GMT)
committerSebastian Dröge <sebastian@centricular.com>2015-03-12 14:42:18 (GMT)
commitad161f7df51c05858be486af2c05c7923e9a4aa1 (patch)
treedc15da7b916a43bab1d413790b4af81acc72820d
parentfadabe8b787d53c90dc06e1fcdaff3f2f04e990c (diff)
downloadgstreamer-ad161f7df51c05858be486af2c05c7923e9a4aa1.tar.gz
gstreamer-ad161f7df51c05858be486af2c05c7923e9a4aa1.tar.xz
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 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) {