changeset 29885:0ed2bca29afa

Remove useless check for valid fd with -dumpstream, the code does not necessarily need it.
author reimar
date Tue, 17 Nov 2009 18:28:43 +0000
parents 9112683a9a02
children 988c42cb595a
files mplayer.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Tue Nov 17 18:08:18 2009 +0000
+++ b/mplayer.c	Tue Nov 17 18:28:43 2009 +0000
@@ -3202,10 +3202,6 @@
   int len;
   FILE *f;
   current_module="dumpstream";
-  if(mpctx->stream->type==STREAMTYPE_STREAM && mpctx->stream->fd<0){
-    mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_DumpstreamFdUnavailable);
-    exit_player(EXIT_ERROR);
-  }
   stream_reset(mpctx->stream);
   stream_seek(mpctx->stream,mpctx->stream->start_pos);
   f=fopen(stream_dump_name,"wb");