diff audacious/input.c @ 1486:c32478314967 trunk

[svn] - do virtual playlists properly in 1.2
author nenolod
date Thu, 03 Aug 2006 01:05:52 -0700
parents 705d4c089fce
children 06329cbf186a
line wrap: on
line diff
--- a/audacious/input.c	Thu Aug 03 01:03:55 2006 -0700
+++ b/audacious/input.c	Thu Aug 03 01:05:52 2006 -0700
@@ -404,13 +404,14 @@
     GList *node;
     InputPlugin *ip;
     gchar *filename_proxy;
+    gint ret = 1;
 
     filename_proxy = g_strdup(filename);
 
     for (node = get_input_list(); node != NULL; node = g_list_next(node)) {
         ip = INPUT_PLUGIN(node->data);
         if (ip && input_is_enabled(ip->filename) &&
-            ip->is_our_file(filename_proxy)) {
+            (ret = ip->is_our_file(filename_proxy)) > 0) {
             g_free(filename_proxy);
             return ip;
         }
@@ -418,7 +419,7 @@
 
     g_free(filename_proxy);
 
-    if (show_warning) {
+    if (show_warning && !(ret <= -1)) {
         input_file_not_playable(filename);
     }