[Mplayer-cvslog] CVS: main mplayer.c,1.558,1.559
Arpi of Ize
arpi at mplayerhq.hu
Sat Aug 31 17:44:43 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv23059
Modified Files:
mplayer.c
Log Message:
removed buggy fd<0 check for disallowing dumpstream/cache
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.558
retrieving revision 1.559
diff -u -r1.558 -r1.559
--- mplayer.c 31 Aug 2002 15:04:06 -0000 1.558
+++ mplayer.c 31 Aug 2002 15:44:26 -0000 1.559
@@ -1021,10 +1021,11 @@
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);
- }
+// 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);
+// }
stream_reset(stream);
stream_seek(stream,stream->start_pos);
f=fopen(stream_dump_name,"wb");
@@ -1221,6 +1222,7 @@
if(sh_audio){
// Go through the codec.conf and find the best codec...
sh_audio->codec=NULL;
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n");
if(audio_fm) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_TryForceAudioFmtStr,audio_fm);
while(1){
sh_audio->codec=find_codec(sh_audio->format,NULL,sh_audio->codec,1);
More information about the MPlayer-cvslog
mailing list