[Mplayer-cvslog] CVS: main mplayer.c,1.559,1.560

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


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

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


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.559
retrieving revision 1.560
diff -u -r1.559 -r1.560
--- mplayer.c	31 Aug 2002 15:44:26 -0000	1.559
+++ mplayer.c	31 Aug 2002 15:59:09 -0000	1.560
@@ -1021,11 +1021,10 @@
   int len;
   FILE *f;
   current_module="dumpstream";
-// this check is bad! for example DVD, CDDA etc support uses stream but fd=-1 !
-//  if(stream->fd<0){
-//    mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Cannot dump this stream - no 'fd' available\n");
-//    exit_player(MSGTR_Exit_error);
-//  }
+  if(stream->type==STREAMTYPE_STREAM && stream->fd<0){
+    mp_msg(MSGT_CPLAYER,MSGL_FATAL,"Cannot dump this stream - no 'fd' available\n");
+    exit_player(MSGTR_Exit_error);
+  }
   stream_reset(stream);
   stream_seek(stream,stream->start_pos);
   f=fopen(stream_dump_name,"wb");




More information about the MPlayer-cvslog mailing list