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

Arpi of Ize arpi at mplayerhq.hu
Sat Aug 31 17:44:44 CEST 2002


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

Modified Files:
	cache2.c 
Log Message:
removed buggy fd<0 check for disallowing dumpstream/cache


Index: cache2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/cache2.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- cache2.c	14 Aug 2002 21:46:48 -0000	1.14
+++ cache2.c	31 Aug 2002 15:44:41 -0000	1.15
@@ -200,11 +200,12 @@
   int ss=(stream->type==STREAMTYPE_VCD)?VCD_SECTOR_DATA:STREAM_BUFFER_SIZE;
   cache_vars_t* s;
 
-  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;
-  }
+// 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(size<32*1024) size=32*1024; // 32kb min
   s=cache_init(size,ss);




More information about the MPlayer-cvslog mailing list