d3dvideosink: release the offscreen surface before the d3d device
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Mon, 25 Jun 2012 14:18:41 +0000 (16:18 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 26 Jun 2012 07:40:29 +0000 (09:40 +0200)
commitad5b76a58d1f30a1b7c4063a3b64ce66a8e35c01
tree7897bc9aa5bd52dbc924e945d2a6ad242db8fa00
parent53988c9a43389bd82a0ad924b1f389177a57d701
d3dvideosink: release the offscreen surface before the d3d device

The offscreen surface keeps a reference on the d3d device, so if the
device is released first we don't see the reference count debug message
going to 0 as it should be.
sys/d3dvideosink/d3dvideosink.c