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:
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)
|
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user