mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
vo: fix previous commit
Commit 433161 actually broke vo_opengl (and maybe others), because config_ok is not necessarily set correctly yet _during_ reconfig. So a vo_get_src_dst_rects() call during reconfig did nothing.
This commit is contained in:
parent
73c7938d74
commit
7267588a98
@ -489,7 +489,7 @@ void vo_seek_reset(struct vo *vo)
|
||||
void vo_get_src_dst_rects(struct vo *vo, struct mp_rect *out_src,
|
||||
struct mp_rect *out_dst, struct mp_osd_res *out_osd)
|
||||
{
|
||||
if (!vo->config_ok)
|
||||
if (!vo->params)
|
||||
return;
|
||||
mp_get_src_dst_rects(vo->log, vo->opts, vo->driver->caps, vo->params,
|
||||
vo->dwidth, vo->dheight, vo->monitor_par,
|
||||
|
Loading…
Reference in New Issue
Block a user