vdpau: Fix bogus check before unreffing

This commit is contained in:
Jan Schmidt 2009-09-02 11:11:20 +01:00
parent 16124a1c1e
commit 6e1a735075

View file

@ -594,7 +594,7 @@ gst_vdp_vpp_stop (GstVdpVideoPostProcess * vpp)
{
if (vpp->mixer != VDP_INVALID_HANDLE)
vpp->device->vdp_video_mixer_destroy (vpp->mixer);
if (!vpp->device)
if (vpp->device)
g_object_unref (vpp->device);
gst_vdp_vpp_flush (vpp);