[Mplayer-cvslog] CVS: main/libmpdemux cache2.c,1.15,1.16

Atmosfear atmos4 at mplayerhq.hu
Sat Aug 31 17:59:12 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv32102/libmpdemux

Modified Files:
	cache2.c 
Log Message:
fix cache disable for live.com


Index: cache2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/cache2.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- cache2.c	31 Aug 2002 15:44:41 -0000	1.15
+++ cache2.c	31 Aug 2002 15:59:10 -0000	1.16
@@ -200,12 +200,11 @@
   int ss=(stream->type==STREAMTYPE_VCD)?VCD_SECTOR_DATA:STREAM_BUFFER_SIZE;
   cache_vars_t* s;
 
-// this check is bad! for example DVD, CDDA etc support uses stream but fd=-1 !
-//  if (stream->fd < 0) {
-//    // The stream has no 'fd' behind it, so is non-cacheable
-//    mp_msg(MSGT_CACHE,MSGL_STATUS,"\rThis stream is non-cacheable\n");
-//    return 1;
-//  }
+  if (stream->type==STREAMTYPE_STREAM && stream->fd < 0) {
+    // The stream has no 'fd' behind it, so is non-cacheable
+    mp_msg(MSGT_CACHE,MSGL_STATUS,"\rThis stream is non-cacheable\n");
+    return 1;
+  }
 
   if(size<32*1024) size=32*1024; // 32kb min
   s=cache_init(size,ss);




More information about the MPlayer-cvslog mailing list