summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/screenshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/player/screenshot.c')
-rw-r--r--mpvcore/player/screenshot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpvcore/player/screenshot.c b/mpvcore/player/screenshot.c
index aeb15c0fd7..f564b5e9d7 100644
--- a/mpvcore/player/screenshot.c
+++ b/mpvcore/player/screenshot.c
@@ -315,8 +315,8 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode)
struct voctrl_screenshot_args args =
{ .full_window = (mode == MODE_FULL_WINDOW) };
- if (mpctx->sh_video && mpctx->sh_video->vfilter) {
- struct vf_instance *vfilter = mpctx->sh_video->vfilter;
+ if (mpctx->d_video && mpctx->d_video->vfilter) {
+ struct vf_instance *vfilter = mpctx->d_video->vfilter;
vfilter->control(vfilter, VFCTRL_SCREENSHOT, &args);
}