From 50c379e2d8a2cee0fcdbadbcbf5d0a0617fdafec Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Dec 2015 01:25:32 +0100 Subject: sub: minor refactor how video FPS for MicroDVD is set So that the video FPs is not required at initialization, and can be set later. (As for whether this MicroDVD crap is worth the trouble to handle it "correctly": MicroDVD files are unfortunately still around, and in at least one case using the video FPS seemed to help indeed.) --- sub/dec_sub.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sub/dec_sub.h') diff --git a/sub/dec_sub.h b/sub/dec_sub.h index f1f738b695..e202438777 100644 --- a/sub/dec_sub.h +++ b/sub/dec_sub.h @@ -8,11 +8,8 @@ struct demuxer; struct sh_stream; -struct ass_track; struct mpv_global; struct demux_packet; -struct ass_library; -struct ass_renderer; struct dec_sub; struct sd; @@ -22,6 +19,7 @@ enum sd_ctrl { SD_CTRL_SET_VIDEO_PARAMS, SD_CTRL_GET_RESOLUTION, SD_CTRL_SET_TOP, + SD_CTRL_SET_VIDEO_DEF_FPS, }; struct dec_sub *sub_create(struct mpv_global *global); @@ -29,7 +27,6 @@ void sub_destroy(struct dec_sub *sub); void sub_lock(struct dec_sub *sub); void sub_unlock(struct dec_sub *sub); -void sub_set_video_fps(struct dec_sub *sub, double fps); void sub_init(struct dec_sub *sub, struct demuxer *demuxer, struct sh_stream *sh); bool sub_is_initialized(struct dec_sub *sub); -- cgit v1.2.3