diff options
author | Christian König <[email protected]> | 2011-04-26 11:16:54 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-04-26 11:16:54 +0200 |
commit | 13a50bd47deff3e52470a513695c1bdb86908d73 (patch) | |
tree | a25ad2cfb154a2a7315410ab0d15df09ac1df8ef | |
parent | 38bd8131776879e9dc90d06848657756a4a13a66 (diff) |
vdpau: implement VideoMixerDestroy
-rw-r--r-- | src/gallium/state_trackers/vdpau/mixer.c | 14 |
1 files changed, 13 insertions, 1 deletions
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 |