[MPlayer-cvslog] r31829 - trunk/libvo/vo_vdpau.c
cehoyos
subversion at mplayerhq.hu
Tue Jul 27 10:38:08 CEST 2010
Author: cehoyos
Date: Tue Jul 27 10:38:08 2010
New Revision: 31829
Log:
Make the VDPAU background black instead of the default green.
(This was reported repeatedly as a problem for users.)
Patch by Vlad Seryakov, vseryakov at gmail
Modified:
trunk/libvo/vo_vdpau.c
Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c Mon Jul 26 21:41:04 2010 (r31828)
+++ trunk/libvo/vo_vdpau.c Tue Jul 27 10:38:08 2010 (r31829)
@@ -124,6 +124,7 @@ static VdpPresentationQueueDestroy
static VdpPresentationQueueDisplay *vdp_presentation_queue_display;
static VdpPresentationQueueBlockUntilSurfaceIdle *vdp_presentation_queue_block_until_surface_idle;
static VdpPresentationQueueTargetCreateX11 *vdp_presentation_queue_target_create_x11;
+static VdpPresentationQueueSetBackgroundColor *vdp_presentation_queue_set_background_color;
static VdpOutputSurfaceRenderOutputSurface *vdp_output_surface_render_output_surface;
static VdpOutputSurfacePutBitsIndexed *vdp_output_surface_put_bits_indexed;
@@ -370,6 +371,8 @@ static int win_x11_init_vdpau_procs(void
&vdp_presentation_queue_block_until_surface_idle},
{VDP_FUNC_ID_PRESENTATION_QUEUE_TARGET_CREATE_X11,
&vdp_presentation_queue_target_create_x11},
+ {VDP_FUNC_ID_PRESENTATION_QUEUE_SET_BACKGROUND_COLOR,
+ &vdp_presentation_queue_set_background_color},
{VDP_FUNC_ID_OUTPUT_SURFACE_RENDER_OUTPUT_SURFACE,
&vdp_output_surface_render_output_surface},
{VDP_FUNC_ID_OUTPUT_SURFACE_PUT_BITS_INDEXED,
@@ -416,6 +419,7 @@ static int win_x11_init_vdpau_procs(void
static int win_x11_init_vdpau_flip_queue(void)
{
VdpStatus vdp_st;
+ VdpColor vdp_bg = { 0, 0, 0, 0 };
vdp_st = vdp_presentation_queue_target_create_x11(vdp_device, vo_window,
&vdp_flip_target);
@@ -425,6 +429,8 @@ static int win_x11_init_vdpau_flip_queue
&vdp_flip_queue);
CHECK_ST_ERROR("Error when calling vdp_presentation_queue_create")
+ vdp_st = vdp_presentation_queue_set_background_color(vdp_flip_queue, &vdp_bg);
+ CHECK_ST_ERROR("Error when calling vdp_presentation_queue_set_background_color")
return 0;
}
More information about the MPlayer-cvslog
mailing list