From e5c094754157102a964364041d6fb0caf2188809 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Jun 2013 01:34:11 +0200 Subject: 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. --- sub/sd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sub/sd.h') 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, -- cgit v1.2.3