summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/vo_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c
index d319778e07..25fb2801b5 100644
--- a/video/out/vo_drm.c
+++ b/video/out/vo_drm.c
@@ -385,7 +385,7 @@ static void release_vo_crtc(struct vo *vo)
p->old_crtc->y,
&p->dev->conn,
1,
- &p->dev->mode);
+ &p->old_crtc->mode);
drmModeFreeCrtc(p->old_crtc);
p->old_crtc = NULL;
}