changeset 9873:480bfff4804c

Reapplied the patch that I had originally made in revision 1.53. (Someone apparently overlooked it when they checked in a subsequent patch)
author rsf
date Mon, 07 Apr 2003 20:41:24 +0000
parents eea06a971711
children 55a43ae66ceb
files libmpdemux/stream.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/stream.c	Mon Apr 07 19:37:19 2003 +0000
+++ b/libmpdemux/stream.c	Mon Apr 07 20:41:24 2003 +0000
@@ -169,7 +169,7 @@
 
 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: