[MPlayer-dev-eng] [PATCH][RESENT] stop mplayer hang on end of mms stream

adland adland123 at yahoo.com
Mon Mar 22 23:27:16 CET 2004


Did not see any comments about this patch so resent.

Patch to fix mplayer hanging on end of playing mms: streams.
 mplayer should exit after stream ends before I would kill process
 manually.

small change is listed below and was tested

apply

diff -Naur main.orig/libmpdemux/asf_mmst_streaming.c 
updated/libmpdemux/asf_mmst_streaming.c
--- main.orig/libmpdemux/asf_mmst_streaming.c   
2003-11-07 19:26:48.000000000 -0500
+++ updated/libmpdemux/asf_mmst_streaming.c
2004-03-17 17:24:02.000000000 -0500
 <at>  <at>  -426,6 +426,10  <at>  <at> 
        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;




More information about the MPlayer-dev-eng mailing list