Mercurial > audlegacy-plugins
comparison src/mpg123/mpg123.c @ 432:1716423d29fe trunk
[svn] - remove blanket http:// grabbing -- probing for mp3 now works by VFS
(even with shoutcast)
author | nenolod |
---|---|
date | Mon, 15 Jan 2007 08:33:07 -0800 |
parents | a157306caf03 |
children | a3bf53abebf5 |
comparison
equal
deleted
inserted
replaced
431:f757e1aa62e6 | 432:1716423d29fe |
---|---|
344 is_our_fd(char *filename, VFSFile *file) | 344 is_our_fd(char *filename, VFSFile *file) |
345 { | 345 { |
346 gchar *ext = strrchr(filename, '.'); | 346 gchar *ext = strrchr(filename, '.'); |
347 gboolean ret = FALSE; | 347 gboolean ret = FALSE; |
348 | 348 |
349 if (CHECK_STREAM_URI(filename) && | 349 if (mpgdec_detect_by_content(file)) |
350 (ext && strncasecmp(ext, ".ogg", 4)) && | |
351 (ext && strncasecmp(ext, ".flac", 5))) | |
352 ret = TRUE; | |
353 else if (mpgdec_detect_by_content(file)) | |
354 ret = TRUE; | 350 ret = TRUE; |
355 | 351 |
356 return ret; | 352 return ret; |
357 } | 353 } |
358 | 354 |