summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c
index 538008302c..73e8ef9d49 100644
--- a/player/video.c
+++ b/player/video.c
@@ -486,7 +486,6 @@ static void init_vo(struct MPContext *mpctx)
static int video_output_image(struct MPContext *mpctx, double endpts,
bool reconfig_ok)
{
- struct vf_chain *vf = mpctx->d_video->vfilter;
struct vo *vo = mpctx->video_out;
// Already enough video buffered in VO?
@@ -499,6 +498,7 @@ static int video_output_image(struct MPContext *mpctx, double endpts,
if (r < 0)
return r; // error
+ struct vf_chain *vf = mpctx->d_video->vfilter;
vf_output_frame(vf, false);
if (vf->output) {
double pts = vf->output->pts;