0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

w32_common: remove some unneeded code

vo_w32_init() can be called only once on a VO.
This commit is contained in:
wm4 2013-06-15 18:57:38 +02:00
parent 63ff79556f
commit 73b9b0b830

View File

@ -570,12 +570,10 @@ int vo_w32_config(struct vo *vo, uint32_t width, uint32_t height,
*/ */
int vo_w32_init(struct vo *vo) int vo_w32_init(struct vo *vo)
{ {
struct vo_w32_state *w32 = vo->w32; assert(!vo->w32);
if (w32 && w32->window)
return 1;
if (!w32) struct vo_w32_state *w32 = talloc_zero(vo, struct vo_w32_state);
w32 = vo->w32 = talloc_zero(vo, struct vo_w32_state); vo->w32 = w32;
HINSTANCE hInstance = GetModuleHandleW(NULL); HINSTANCE hInstance = GetModuleHandleW(NULL);