[Mplayer-cvslog] CVS: main mplayer.c,1.553,1.554

Arpi of Ize arpi at mplayerhq.hu
Thu Aug 29 22:11:57 CEST 2002


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

Modified Files:
	mplayer.c 
Log Message:
can't dump stream if it isn't stream - tip by Ross Finlayson <finlayson at live.com>


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.553
retrieving revision 1.554
diff -u -r1.553 -r1.554
--- mplayer.c	28 Aug 2002 21:32:30 -0000	1.553
+++ mplayer.c	29 Aug 2002 20:11:43 -0000	1.554
@@ -1001,6 +1001,10 @@
   int len;
   FILE *f;
   current_module="dumpstream";
+  if(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