diff src/audacious/playlist.c @ 2433:6cdccf094e51 trunk

[svn] - Why are we probing streams so unnecessarily often?
author nhjm449
date Sun, 28 Jan 2007 01:58:22 -0800
parents 0fd7f4f969ad
children 5e8526a4f554
line wrap: on
line diff
--- a/src/audacious/playlist.c	Sun Jan 28 01:54:28 2007 -0800
+++ b/src/audacious/playlist.c	Sun Jan 28 01:58:22 2007 -0800
@@ -189,6 +189,10 @@
 
     g_return_val_if_fail(entry != NULL, FALSE);
 
+    // Let's not randomly probe streams, mmkay?
+    if (entry->decoder == NULL && (str_has_prefix_nocase(entry->filename, "http://") || str_has_prefix_nocase(entry->filename, "https://")))
+        return TRUE;
+
     if (entry->tuple == NULL || entry->tuple->mtime > 0 || entry->tuple->mtime == -1)
 	modtime = playlist_get_mtime(entry->filename);
     else