summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-05-31 15:07:10 +0000
committerphintuka <phintuka>2009-05-31 15:07:10 +0000
commit8a382ed420f836866b66b8ef25c0881ac03e815a (patch)
treeb7e9d70992d370f2925f323243cabf0a2eb79a7f
parent311f1a718e7cf5e371b3b1c7e4f2a7809e9be6a3 (diff)
downloadxineliboutput-8a382ed420f836866b66b8ef25c0881ac03e815a.tar.gz
xineliboutput-8a382ed420f836866b66b8ef25c0881ac03e815a.tar.bz2
Added IsDvdImage()
-rw-r--r--config.c8
-rw-r--r--config.h3
2 files changed, 9 insertions, 2 deletions
diff --git a/config.c b/config.c
index 24fcc30e..1c518f0c 100644
--- a/config.c
+++ b/config.c
@@ -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)
diff --git a/config.h b/config.h
index e961383b..c59e09ec 100644
--- a/config.h
+++ b/config.h
@@ -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);