From 13a50bd47deff3e52470a513695c1bdb86908d73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Tue, 26 Apr 2011 11:16:54 +0200 Subject: [PATCH] vdpau: implement VideoMixerDestroy --- src/gallium/state_trackers/vdpau/mixer.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/vdpau/mixer.c b/src/gallium/state_trackers/vdpau/mixer.c index bafd84f4c51..b02d591eb05 100644 --- a/src/gallium/state_trackers/vdpau/mixer.c +++ b/src/gallium/state_trackers/vdpau/mixer.c @@ -89,7 +89,19 @@ no_handle: VdpStatus vlVdpVideoMixerDestroy(VdpVideoMixer mixer) { - return VDP_STATUS_NO_IMPLEMENTATION; + vlVdpVideoMixer *vmixer; + + debug_printf("[VDPAU] Destroying VideoMixer\n"); + + vmixer = vlGetDataHTAB(mixer); + if (!vmixer) + return VDP_STATUS_INVALID_HANDLE; + + vmixer->compositor->destroy(vmixer->compositor); + + FREE(vmixer); + + return VDP_STATUS_OK; } VdpStatus -- 2.30.2