diff options
author | wm4 <wm4@nowhere> | 2013-06-01 19:40:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-01 19:42:00 +0200 |
commit | f7b9b92179333e5bf399cbb6289b66ed3439445c (patch) | |
tree | 870c8b95172a50d6cb9678c8cfebc99beb4a17c8 /sub/sd_spu.c | |
parent | 28116b8a799078b3c6b3b559ed4463669c79cf0e (diff) | |
download | mpv-f7b9b92179333e5bf399cbb6289b66ed3439445c.tar.bz2 mpv-f7b9b92179333e5bf399cbb6289b66ed3439445c.tar.xz |
sub: various minor subtitle related changes
Just pushing some code around.
Diffstat (limited to 'sub/sd_spu.c')
-rw-r--r-- | sub/sd_spu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sub/sd_spu.c b/sub/sd_spu.c index fc4e4701dc..8b87b7a0dc 100644 --- a/sub/sd_spu.c +++ b/sub/sd_spu.c @@ -29,6 +29,12 @@ struct sd_spu_priv { void *spudec; }; +static bool is_dvd_sub(const char *t) +{ + return t && (strcmp(t, "dvd_subtitle") == 0 || + strcmp(t, "dvd_subtitle_mpg") == 0); +} + static bool supports_format(const char *format) { return is_dvd_sub(format); |