1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00: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)
{
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);