uridecodebin: reset counter

reset the number of pending dynamic operations back to 0 when we reuse
uridecodebin.
Fixes #576190
This commit is contained in:
Wim Taymans 2009-03-23 12:26:05 +01:00
parent b7fdb7c6d7
commit 779d6f886d

View file

@ -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;