playbin: Only unref the volume element on dispose and when a new audio sink is set
authorThomas Green <thomasgr33n@googlemail.com>
Fri, 9 Apr 2010 06:23:33 +0000 (08:23 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 9 Apr 2010 06:23:33 +0000 (08:23 +0200)
commit57b64c001a0a5c4e2008f61afb607c147e05a773
treec0da1226842ca8bd398954f6d7d19a2206611d74
parent818e869d70069c5104da02560019e9a257fa8125
playbin: Only unref the volume element on dispose and when a new audio sink is set

Unreffing it whenever the sinks are removed will make the volume
element unavailable after a playbin reuse because it is only
recreated if the audio sink has changed.

Fixes bug #614288.
gst/playback/gstplaybin.c