From bb816d137accf6b4826aab00a56e6d23ea47ed85 Mon Sep 17 00:00:00 2001 From: rsf Date: Mon, 7 Apr 2003 20:41:24 +0000 Subject: [PATCH] Reapplied the patch that I had originally made in revision 1.53. (Someone apparently overlooked it when they checked in a subsequent patch) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9874 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/stream.c b/libmpdemux/stream.c index f40c7267cb..786febe4da 100644 --- a/libmpdemux/stream.c +++ b/libmpdemux/stream.c @@ -169,7 +169,7 @@ stream_t* open_stream_full(char* filename,int mode, char** options, int* file_fo int stream_fill_buffer(stream_t *s){ int len; - if (s->eof) { s->buf_pos = s->buf_len = 0; return 0; } + if (s->fd == NULL || s->eof) { s->buf_pos = s->buf_len = 0; return 0; } switch(s->type){ #ifdef LIBSMBCLIENT case STREAMTYPE_SMB: