diff options
author | wm4 <wm4@nowhere> | 2015-12-27 01:25:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-27 02:13:06 +0100 |
commit | 50c379e2d8a2cee0fcdbadbcbf5d0a0617fdafec (patch) | |
tree | a499e78204d23327a3fde44da22ebac1425b4679 /sub/dec_sub.h | |
parent | d9f8b9f7b235e6092a1e8b35041757e28e08de04 (diff) | |
download | mpv-50c379e2d8a2cee0fcdbadbcbf5d0a0617fdafec.tar.bz2 mpv-50c379e2d8a2cee0fcdbadbcbf5d0a0617fdafec.tar.xz |
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.)
Diffstat (limited to 'sub/dec_sub.h')
-rw-r--r-- | sub/dec_sub.h | 5 |
1 files changed, 1 insertions, 4 deletions
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); |