summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-03-23 12:26:05 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2009-03-23 12:28:18 +0100
commit779d6f886d57b804069e86f868a195ad8fffcae3 (patch)
tree00852b8a1a884238e00e508756631d629189fe50
parentb7fdb7c6d71b7185ac54b94d7182219a51316210 (diff)
uridecodebin: reset counter
reset the number of pending dynamic operations back to 0 when we reuse uridecodebin. Fixes #576190
-rw-r--r--gst/playback/gsturidecodebin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c
index 675214537..986616196 100644
--- a/gst/playback/gsturidecodebin.c
+++ b/gst/playback/gsturidecodebin.c
@@ -1349,6 +1349,8 @@ setup_source (GstURIDecodeBin * decoder)
/* delete old src */
remove_source (decoder);
+ decoder->pending = 0;
+
/* create and configure an element that can handle the uri */
if (!(decoder->source = gen_source_element (decoder)))
goto no_source;