summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/asf_mmst_streaming.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/asf_mmst_streaming.c b/libmpdemux/asf_mmst_streaming.c
index c5a75fa497..16a032bae1 100644
--- a/libmpdemux/asf_mmst_streaming.c
+++ b/libmpdemux/asf_mmst_streaming.c
@@ -425,7 +425,8 @@ asf_mmst_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *strea
if( ret<0 ) {
printf("get_media_packet error : %s\n",strerror(errno));
return -1;
- }
+ } else if (ret==0) //EOF?
+ return ret;
}
len = stream_ctrl->buffer_size-stream_ctrl->buffer_pos;