diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/video.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index f95222081c..53f6b8a21c 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -3133,6 +3133,11 @@ void gl_video_resize(struct gl_video *p, struct mp_rect *src, struct mp_rect *dst, struct mp_osd_res *osd) { + if (mp_rect_equals(&p->src_rect, src) && + mp_rect_equals(&p->dst_rect, dst) && + osd_res_equals(p->osd_rect, *osd)) + return; + p->src_rect = *src; p->dst_rect = *dst; p->osd_rect = *osd; |