Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
2432:4a1d1c324685 | 2433:6cdccf094e51 |
---|---|
186 { | 186 { |
187 TitleInput *tuple; | 187 TitleInput *tuple; |
188 time_t modtime; | 188 time_t modtime; |
189 | 189 |
190 g_return_val_if_fail(entry != NULL, FALSE); | 190 g_return_val_if_fail(entry != NULL, FALSE); |
191 | |
192 // Let's not randomly probe streams, mmkay? | |
193 if (entry->decoder == NULL && (str_has_prefix_nocase(entry->filename, "http://") || str_has_prefix_nocase(entry->filename, "https://"))) | |
194 return TRUE; | |
191 | 195 |
192 if (entry->tuple == NULL || entry->tuple->mtime > 0 || entry->tuple->mtime == -1) | 196 if (entry->tuple == NULL || entry->tuple->mtime > 0 || entry->tuple->mtime == -1) |
193 modtime = playlist_get_mtime(entry->filename); | 197 modtime = playlist_get_mtime(entry->filename); |
194 else | 198 else |
195 modtime = 0; /* URI -nenolod */ | 199 modtime = 0; /* URI -nenolod */ |