summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-06 01:04:51 +0200
committerwm4 <wm4@nowhere>2014-05-06 01:04:51 +0200
commit7267588a9883a28dfd6cfa700581722067b53e7f (patch)
treea0e47e95367e6c5a7e085c2e4a35d7063c81ea12 /video
parent73c7938d743a3d42ba92874ef5c71198f441b988 (diff)
downloadmpv-7267588a9883a28dfd6cfa700581722067b53e7f.tar.bz2
mpv-7267588a9883a28dfd6cfa700581722067b53e7f.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 8ee65969af..43e5d08fa2 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -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,