From e13eb3fede680fdadb76efce957806654cda0f23 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 20 Sep 2016 15:34:31 +0200 Subject: 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). --- video/decode/dec_video.c | 2 +- video/decode/dec_video.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'video/decode') 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 */ -- cgit v1.2.3