vdpau: add compositor to mixer

This commit is contained in:
Christian König 2011-04-08 20:12:30 +02:00
parent 6710e690f6
commit 574ffb440d
2 changed files with 7 additions and 1 deletions

View file

@ -39,8 +39,9 @@ vlVdpVideoMixerCreate(VdpDevice device,
void const *const *parameter_values,
VdpVideoMixer *mixer)
{
VdpStatus ret;
vlVdpVideoMixer *vmixer = NULL;
struct pipe_video_context *context;
VdpStatus ret;
debug_printf("[VDPAU] Creating VideoMixer\n");
@ -48,11 +49,15 @@ vlVdpVideoMixerCreate(VdpDevice device,
if (!dev)
return VDP_STATUS_INVALID_HANDLE;
context = dev->context->vpipe;
vmixer = CALLOC(1, sizeof(vlVdpVideoMixer));
if (!vmixer)
return VDP_STATUS_RESOURCES;
vmixer->device = dev;
vmixer->compositor = context->create_compositor(context);
/*
* TODO: Handle features and parameters
* */

View file

@ -189,6 +189,7 @@ typedef struct
typedef struct
{
vlVdpDevice *device;
struct pipe_video_compositor *compositor;
} vlVdpVideoMixer;
typedef struct