From f7b9b92179333e5bf399cbb6289b66ed3439445c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 1 Jun 2013 19:40:09 +0200 Subject: sub: various minor subtitle related changes Just pushing some code around. --- sub/dec_sub.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'sub/dec_sub.c') diff --git a/sub/dec_sub.c b/sub/dec_sub.c index 36ba25edd2..2cc02efb79 100644 --- a/sub/dec_sub.c +++ b/sub/dec_sub.c @@ -40,26 +40,6 @@ static const struct sd_functions *sd_list[] = { NULL }; -bool is_text_sub(const char *t) -{ - return t && (is_ass_sub(t) || - strcmp(t, "text") == 0 || - strcmp(t, "subrip") == 0 || - strcmp(t, "mov_text") == 0); -} - -bool is_ass_sub(const char *t) -{ - return t && (strcmp(t, "ass") == 0 || - strcmp(t, "ssa") == 0); -} - -bool is_dvd_sub(const char *t) -{ - return t && (strcmp(t, "dvd_subtitle") == 0 || - strcmp(t, "dvd_subtitle_mpg") == 0); -} - void sub_init(struct sh_sub *sh, struct osd_state *osd) { sh->sd_driver = NULL; -- cgit v1.2.3