diff options
author | wm4 <wm4@nowhere> | 2013-06-29 01:34:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-29 22:58:14 +0200 |
commit | e5c094754157102a964364041d6fb0caf2188809 (patch) | |
tree | e6bb02b7408c40651d620ac523fb2ffdf3f17cc7 /sub/dec_sub.h | |
parent | 00b0f42c42724346190d350e8801e19d8d7b9a23 (diff) | |
download | mpv-e5c094754157102a964364041d6fb0caf2188809.tar.bz2 mpv-e5c094754157102a964364041d6fb0caf2188809.tar.xz |
dec_sub: introduce sub_control(), use it for sub_step
This means the direct libass usage can be removed from command.c, and no
weird hacks for retrieving the ASS_Track are needed.
Also fix a bug when using this feature with ordered chapters.
Diffstat (limited to 'sub/dec_sub.h')
-rw-r--r-- | sub/dec_sub.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sub/dec_sub.h b/sub/dec_sub.h index c285449f94..3fb35deace 100644 --- a/sub/dec_sub.h +++ b/sub/dec_sub.h @@ -16,6 +16,10 @@ struct ass_renderer; struct dec_sub; struct sd; +enum sd_ctrl { + SD_CTRL_SUB_STEP, +}; + struct dec_sub *sub_create(struct MPOpts *opts); void sub_destroy(struct dec_sub *sub); @@ -37,10 +41,6 @@ bool sub_has_get_text(struct dec_sub *sub); char *sub_get_text(struct dec_sub *sub, double pts); void sub_reset(struct dec_sub *sub); -struct sd *sub_get_last_sd(struct dec_sub *sub); - -#ifdef CONFIG_ASS -struct ass_track *sub_get_ass_track(struct dec_sub *sub); -#endif +int sub_control(struct dec_sub *sub, enum sd_ctrl cmd, void *arg); #endif |