Mercurial > mplayer.hg
comparison mplayer.c @ 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 | 32af1e6ef8d3 |
children | 3991a8fd6a02 |
comparison
equal
deleted
inserted
replaced
29884:9112683a9a02 | 29885:0ed2bca29afa |
---|---|
3200 if(stream_dump_type==5){ | 3200 if(stream_dump_type==5){ |
3201 unsigned char buf[4096]; | 3201 unsigned char buf[4096]; |
3202 int len; | 3202 int len; |
3203 FILE *f; | 3203 FILE *f; |
3204 current_module="dumpstream"; | 3204 current_module="dumpstream"; |
3205 if(mpctx->stream->type==STREAMTYPE_STREAM && mpctx->stream->fd<0){ | |
3206 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_DumpstreamFdUnavailable); | |
3207 exit_player(EXIT_ERROR); | |
3208 } | |
3209 stream_reset(mpctx->stream); | 3205 stream_reset(mpctx->stream); |
3210 stream_seek(mpctx->stream,mpctx->stream->start_pos); | 3206 stream_seek(mpctx->stream,mpctx->stream->start_pos); |
3211 f=fopen(stream_dump_name,"wb"); | 3207 f=fopen(stream_dump_name,"wb"); |
3212 if(!f){ | 3208 if(!f){ |
3213 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_CantOpenDumpfile); | 3209 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_CantOpenDumpfile); |