# HG changeset patch # User rtognimp # Date 1080485089 0 # Node ID e200b0e11e9cad5af8e8b91a7d59a39ae56ff71b # Parent 1309695bcdf48c05e6c937ae84bb24ac7459ff98 Fix hanging at end of mms:// streams. Patch by adland diff -r 1309695bcdf4 -r e200b0e11e9c libmpdemux/asf_mmst_streaming.c --- a/libmpdemux/asf_mmst_streaming.c Sun Mar 28 11:23:53 2004 +0000 +++ b/libmpdemux/asf_mmst_streaming.c Sun Mar 28 14:44:49 2004 +0000 @@ -425,7 +425,8 @@ 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;