summaryrefslogtreecommitdiffstats
path: root/sub/sd.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-29 01:34:11 +0200
committerwm4 <wm4@nowhere>2013-06-29 22:58:14 +0200
commite5c094754157102a964364041d6fb0caf2188809 (patch)
treee6bb02b7408c40651d620ac523fb2ffdf3f17cc7 /sub/sd.h
parent00b0f42c42724346190d350e8801e19d8d7b9a23 (diff)
downloadmpv-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/sd.h')
-rw-r--r--sub/sd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sub/sd.h b/sub/sd.h
index 4268137921..3b83197989 100644
--- a/sub/sd.h
+++ b/sub/sd.h
@@ -54,6 +54,7 @@ struct sd_functions {
void (*uninit)(struct sd *sd);
void (*fix_events)(struct sd *sd);
+ int (*control)(struct sd *sd, enum sd_ctrl cmd, void *arg);
// decoder
void (*get_bitmaps)(struct sd *sd, struct mp_osd_res dim, double pts,