GNOME Bugzilla – Bug 642466
playbin2: after replacing a video sink with the pipeline in NULL state I still get the old one
Last modified: 2011-04-08 13:32:31 UTC
Created attachment 181001 [details] Test case In the attached test case I create a playbin2, set a video sink, play a video for some time, then stop it, set the pipeline to NULL and set a new video sink to the pipeline. At this point I'm expecting the old sink to be destroyed and replaced by the new one, but if I query the pipeline I still get the original video sink, which by the way increases its reference counter each time I repeat the process.
Following commit takes care of this. Note however: * the new sink only takes effect in later state changes (so querying still reports previous one temporarily) * increased reference count seems due to the test app not releasing the ref it obtains when querying the property commit 19052a847d43c489e6bfd249d4e63ba31e630fe1 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Wed Feb 23 14:31:13 2011 +0100 playsink: release all chains when going to NULL Also fixes #642466.
(In reply to comment #1) > * increased reference count seems due to the test app not releasing > the ref it obtains when querying the property Oops, my bad. Thanks for fixing it!
*** Bug 643772 has been marked as a duplicate of this bug. ***
*** Bug 647164 has been marked as a duplicate of this bug. ***