mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 15:27:00 +00:00
Move initialisation of deint_surfaces[] to free_video_specific().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28971 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2ec3f259e5
commit
773c611884
@ -447,6 +447,9 @@ static void free_video_specific(void) {
|
|||||||
decoder = VDP_INVALID_HANDLE;
|
decoder = VDP_INVALID_HANDLE;
|
||||||
decoder_max_refs = -1;
|
decoder_max_refs = -1;
|
||||||
|
|
||||||
|
for (i = 0; i < 3; i++)
|
||||||
|
deint_surfaces[i] = VDP_INVALID_HANDLE;
|
||||||
|
|
||||||
for (i = 0; i < MAX_VIDEO_SURFACES; i++) {
|
for (i = 0; i < MAX_VIDEO_SURFACES; i++) {
|
||||||
if (surface_render[i].surface != VDP_INVALID_HANDLE) {
|
if (surface_render[i].surface != VDP_INVALID_HANDLE) {
|
||||||
vdp_st = vdp_video_surface_destroy(surface_render[i].surface);
|
vdp_st = vdp_video_surface_destroy(surface_render[i].surface);
|
||||||
@ -474,7 +477,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
|||||||
XSetWindowAttributes xswa;
|
XSetWindowAttributes xswa;
|
||||||
XWindowAttributes attribs;
|
XWindowAttributes attribs;
|
||||||
unsigned long xswamask;
|
unsigned long xswamask;
|
||||||
int depth, i;
|
int depth;
|
||||||
|
|
||||||
#ifdef CONFIG_XF86VM
|
#ifdef CONFIG_XF86VM
|
||||||
int vm = flags & VOFLAG_MODESWITCHING;
|
int vm = flags & VOFLAG_MODESWITCHING;
|
||||||
@ -543,9 +546,6 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
|||||||
vid_surface_num = -1;
|
vid_surface_num = -1;
|
||||||
resize();
|
resize();
|
||||||
|
|
||||||
for (i = 0; i < 3; i++)
|
|
||||||
deint_surfaces[i] = VDP_INVALID_HANDLE;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user