# HG changeset patch # User arpi # Date 1030651903 0 # Node ID ea3f7a306873b6cfbc7d7388bdb31691fbbab041 # Parent 8a46f9572b8b90d64343c3e8a5bafba8177a3a94 can't dump stream if it isn't stream - tip by Ross Finlayson diff -r 8a46f9572b8b -r ea3f7a306873 mplayer.c --- a/mplayer.c Thu Aug 29 19:12:36 2002 +0000 +++ b/mplayer.c Thu Aug 29 20:11:43 2002 +0000 @@ -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");