diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/w32_common.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 41b8855c20..e97a9e2e85 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -570,12 +570,10 @@ int vo_w32_config(struct vo *vo, uint32_t width, uint32_t height, */ int vo_w32_init(struct vo *vo) { - struct vo_w32_state *w32 = vo->w32; - if (w32 && w32->window) - return 1; + assert(!vo->w32); - if (!w32) - w32 = vo->w32 = talloc_zero(vo, struct vo_w32_state); + struct vo_w32_state *w32 = talloc_zero(vo, struct vo_w32_state); + vo->w32 = w32; HINSTANCE hInstance = GetModuleHandleW(NULL); |