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:
parent
63ff79556f
commit
73b9b0b830
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user