From a203da2696144df4e703c86a8d7d097496e4f7d6 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sat, 6 Sep 2008 06:07:47 +0000 Subject: Restore playlist file detection (was lost in commit 1.65) --- config.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.c b/config.c index c16d7eb1..4cd845d4 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.69 2008-07-29 20:57:54 phintuka Exp $ + * $Id: config.c,v 1.70 2008-09-06 06:07:47 phintuka Exp $ * */ @@ -376,19 +376,19 @@ bool config_t::IsPlaylistFile(const char *fname) bool config_t::IsAudioFile(const char *fname) { const char *ext = get_extension(fname); - return ext && ext_is_audio(ext); + return ext && (ext_is_audio(ext) || ext_is_playlist(ext)); } bool config_t::IsVideoFile(const char *fname) { const char *ext = get_extension(fname); - return ext && (ext_is_video(ext) || ext_is_audio(ext)); + return ext && (ext_is_video(ext) || ext_is_audio(ext) || ext_is_playlist(ext)); } bool config_t::IsImageFile(const char *fname) { const char *ext = get_extension(fname); - return ext && ext_is_image(ext); + return ext && (ext_is_image(ext) || ext_is_playlist(ext)); } cString config_t::AutocropOptions(void) -- cgit v1.2.3