summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-31 15:44:41 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-31 15:44:41 +0000
commit6740811112273abc8fd378edf55b94a291233bba (patch)
treec8a95661ced1f2d58b62b6337a474190fd72f51f /mplayer.c
parenta63ea1a018ca781936dc0d4663b249676382844f (diff)
downloadmpv-6740811112273abc8fd378edf55b94a291233bba.tar.bz2
mpv-6740811112273abc8fd378edf55b94a291233bba.tar.xz
removed buggy fd<0 check for disallowing dumpstream/cache
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7203 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mplayer.c b/mplayer.c
index 30d85d73d9..887b6053ad 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1021,10 +1021,11 @@ if(stream_dump_type==5){
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 @@ current_module="find_audio_codec";
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);