[MPlayer-cvslog] r28971 - trunk/libvo/vo_vdpau.c
cehoyos
subversion at mplayerhq.hu
Sun Mar 15 23:19:05 CET 2009
Author: cehoyos
Date: Sun Mar 15 23:19:05 2009
New Revision: 28971
Log:
Move initialisation of deint_surfaces[] to free_video_specific().
Modified:
trunk/libvo/vo_vdpau.c
Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c Sun Mar 15 22:48:52 2009 (r28970)
+++ trunk/libvo/vo_vdpau.c Sun Mar 15 23:19:05 2009 (r28971)
@@ -447,6 +447,9 @@ static void free_video_specific(void) {
decoder = VDP_INVALID_HANDLE;
decoder_max_refs = -1;
+ for (i = 0; i < 3; i++)
+ deint_surfaces[i] = VDP_INVALID_HANDLE;
+
for (i = 0; i < MAX_VIDEO_SURFACES; i++) {
if (surface_render[i].surface != VDP_INVALID_HANDLE) {
vdp_st = vdp_video_surface_destroy(surface_render[i].surface);
@@ -474,7 +477,7 @@ static int config(uint32_t width, uint32
XSetWindowAttributes xswa;
XWindowAttributes attribs;
unsigned long xswamask;
- int depth, i;
+ int depth;
#ifdef CONFIG_XF86VM
int vm = flags & VOFLAG_MODESWITCHING;
@@ -543,9 +546,6 @@ static int config(uint32_t width, uint32
vid_surface_num = -1;
resize();
- for (i = 0; i < 3; i++)
- deint_surfaces[i] = VDP_INVALID_HANDLE;
-
return 0;
}
More information about the MPlayer-cvslog
mailing list