diff src/madplug/plugin.c @ 765:2430c9773fa7 trunk

[svn] - determine whether stream is seekable or not by checking duration. it is safe to use with proxy.
author yaz
date Thu, 01 Mar 2007 06:31:20 -0800
parents 59b4bce10c3b
children 1d3f70ac6b31
line wrap: on
line diff
--- a/src/madplug/plugin.c	Thu Mar 01 04:33:43 2007 -0800
+++ b/src/madplug/plugin.c	Thu Mar 01 06:31:20 2007 -0800
@@ -496,7 +496,7 @@
     string = NULL;
 #endif
 
-    if(info.remote && info.size == 0){
+    if(info.remote && mad_timer_count(info.duration, MAD_UNITS_SECONDS) == 0){
         if(info.playback && info.playback->playing) {
             tuple = bmp_title_input_new();
 #ifdef DEBUG