diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-03-28 14:44:49 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-03-28 14:44:49 +0000 |
commit | e294c7134c3a9d69d9b7dd16cf0ccd8fb87bcb80 (patch) | |
tree | 33e0ed57fc043b97862d7bea5c781dd49a790b37 | |
parent | 57b55283ff970c2d231ffad5e3a10b4dfef2579e (diff) | |
download | mpv-e294c7134c3a9d69d9b7dd16cf0ccd8fb87bcb80.tar.bz2 mpv-e294c7134c3a9d69d9b7dd16cf0ccd8fb87bcb80.tar.xz |
Fix hanging at end of mms:// streams.
Patch by adland
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12078 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/asf_mmst_streaming.c | 3 |
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; |