summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/screenshot.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-23 21:36:20 +0100
committerwm4 <wm4@nowhere>2013-11-23 21:36:20 +0100
commit3486302514db31b8086f46226d9b46d53810d1e7 (patch)
treea5b35e0a67d4cee1b5ec8bb0d489f38495d66b3c /mpvcore/player/screenshot.c
parent057af4697cf65709012f41ff2f0d97b918c51d79 (diff)
downloadmpv-3486302514db31b8086f46226d9b46d53810d1e7.tar.bz2
mpv-3486302514db31b8086f46226d9b46d53810d1e7.tar.xz
video: move decoder context from sh_video into new struct
This is similar to the sh_audio commit. This is mostly cosmetic in nature, except that it also adds automatical freeing of the decoder driver's state struct (which was in sh_video->context, now in dec_video->priv). Also remove all the stheader.h fields that are not needed anymore.
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);
}