playsink: Reset the sink's state to NULL before unreffing it unless it's the same...
authorJosep Torra Valles <n770galaxy@gmail.com>
Fri, 12 Feb 2010 18:43:13 +0000 (19:43 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 12 Feb 2010 18:43:13 +0000 (19:43 +0100)
commitd58f4fcf48c768607c11597bf83c0e6db469b4b5
tree941061665f8feaa201ada0e92a92ae0dac40a99f
parent76f715cb8bf4776fe70c47ce66cd58c366fd32e8
playsink: Reset the sink's state to NULL before unreffing it unless it's the same instance again

This makes sure that we don't destroy the last reference before the
element gets back to NULL state. Fixes assertion failures if a playbin2
instance is reused but different sinks are automatically chosen because
of different caps.
gst/playback/gstplaysink.c