changeset 3517:b747ad540903 trunk

proberesult = use g_new0() for now still
author William Pitcock <nenolod@atheme.org>
date Tue, 11 Sep 2007 20:34:55 -0500
parents 0970c745a497
children 3a2ee00bc962
files src/audacious/input.c
diffstat 1 files changed, 1 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/input.c	Tue Sep 11 20:33:30 2007 -0500
+++ b/src/audacious/input.c	Tue Sep 11 20:34:55 2007 -0500
@@ -376,7 +376,7 @@
         if (ret > 0)
         {
             g_free(filename_proxy);
-            pr = g_slice_new0(ProbeResult, 1);
+            pr = g_new0(ProbeResult, 1);
             pr->ip = ip;
             return pr;
         }
@@ -384,31 +384,6 @@
         return NULL;
     }
 
-    /* CD-Audio uses cdda:// dummy paths, no filedescriptor handling for it */
-    /* also cuesheet uses cue:// */
-/*
-    if (!g_strncasecmp(filename, "cue://", 6)) {
-        for (node = get_input_list(); node != NULL; node = g_list_next(node))
-        {
-            ip = INPUT_PLUGIN(node->data);
-            if (!ip || !ip->enabled)
-                continue;
-            if (ip->is_our_file != NULL)
-                ret = ip->is_our_file(filename_proxy);
-            else
-                ret = 0;
-            if (ret > 0)
-            {
-                g_free(filename_proxy);
-                pr = g_new0(ProbeResult, 1);
-                pr->ip = ip;
-                return pr;
-            }
-        }
-        g_free(filename_proxy);
-        return NULL;
-    }
-*/
     fd = vfs_buffered_file_new_from_uri(tmp_uri);
     g_free(tmp_uri);