diff options
author | phintuka <phintuka> | 2009-05-31 15:07:10 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-05-31 15:07:10 +0000 |
commit | 8a382ed420f836866b66b8ef25c0881ac03e815a (patch) | |
tree | b7e9d70992d370f2925f323243cabf0a2eb79a7f | |
parent | 311f1a718e7cf5e371b3b1c7e4f2a7809e9be6a3 (diff) | |
download | xineliboutput-8a382ed420f836866b66b8ef25c0881ac03e815a.tar.gz xineliboutput-8a382ed420f836866b66b8ef25c0881ac03e815a.tar.bz2 |
Added IsDvdImage()
-rw-r--r-- | config.c | 8 | ||||
-rw-r--r-- | config.h | 3 |
2 files changed, 9 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.c,v 1.80 2009-05-29 14:57:00 phintuka Exp $ + * $Id: config.c,v 1.81 2009-05-31 15:07:10 phintuka Exp $ * */ @@ -396,6 +396,12 @@ bool config_t::IsImageFile(const char *fname) return ext && (ext_is_image(ext) || ext_is_playlist(ext)); } +bool config_t::IsDvdImage(const char *fname) +{ + const char *ext = get_extension(fname); + return (ext && !strcasecmp(ext, ".iso")) ? true : false; +} + cString config_t::AutocropOptions(void) { if (!autocrop) @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.h,v 1.59 2009-01-08 11:58:33 rofafor Exp $ + * $Id: config.h,v 1.60 2009-05-31 15:07:10 phintuka Exp $ * */ @@ -397,6 +397,7 @@ class config_t { bool IsAudioFile(const char *); bool IsVideoFile(const char *); bool IsPlaylistFile(const char *); + bool IsDvdImage(const char *); cString AutocropOptions(void); cString SwScaleOptions(void); |