diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-31 15:59:10 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-31 15:59:10 +0000 |
commit | 119841635b0f1ea66314abc1a4acd504f98f9283 (patch) | |
tree | ec5ab42a3c98b1de48b4351570d7de8b46ce4acf /mplayer.c | |
parent | 9488c3c7ed2cf1b312f1450840dae0dca411da43 (diff) | |
download | mpv-119841635b0f1ea66314abc1a4acd504f98f9283.tar.bz2 mpv-119841635b0f1ea66314abc1a4acd504f98f9283.tar.xz |
fix cache disable for live.com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7205 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1021,11 +1021,10 @@ if(stream_dump_type==5){ int len; FILE *f; current_module="dumpstream"; -// 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); -// } + if(stream->type==STREAMTYPE_STREAM && 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"); |