summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-20 15:34:31 +0200
committerwm4 <wm4@nowhere>2016-09-20 15:44:16 +0200
commite13eb3fede680fdadb76efce957806654cda0f23 (patch)
treed3ae9bc7c32824256588a2896ae64afb57f97825 /video/decode
parentbf385e1140069fb1c6d41161aece0fe099513ac0 (diff)
downloadmpv-e13eb3fede680fdadb76efce957806654cda0f23.tar.bz2
mpv-e13eb3fede680fdadb76efce957806654cda0f23.tar.xz
command: change update handling of some video-related properties
Use the new mechanism, instead of wrapped properties. As usual, extend the update handling to some options that were forgotten/neglected before. Rename video_reset_aspect() to video_reset_params() to make it more "general" (and we can amazingly include write access to video-aspect as well in this).
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/dec_video.c2
-rw-r--r--video/decode/dec_video.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c
index 2a6a3ec213..51f959ff6d 100644
--- a/video/decode/dec_video.c
+++ b/video/decode/dec_video.c
@@ -341,7 +341,7 @@ static struct mp_image *decode_packet(struct dec_video *d_video,
return mpi;
}
-void video_reset_aspect(struct dec_video *d_video)
+void video_reset_params(struct dec_video *d_video)
{
d_video->last_format = (struct mp_image_params){0};
}
diff --git a/video/decode/dec_video.h b/video/decode/dec_video.h
index 1030973e1c..be82e4679a 100644
--- a/video/decode/dec_video.h
+++ b/video/decode/dec_video.h
@@ -91,6 +91,6 @@ void video_set_start(struct dec_video *d_video, double start_pts);
int video_vd_control(struct dec_video *d_video, int cmd, void *arg);
void video_reset(struct dec_video *d_video);
-void video_reset_aspect(struct dec_video *d_video);
+void video_reset_params(struct dec_video *d_video);
#endif /* MPLAYER_DEC_VIDEO_H */