[MPlayer-dev-eng] [PATCH] stop mplayer hangup on end of mms stream playing
adland
adland123 at yahoo.com
Thu Mar 18 04:46:18 CET 2004
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
@@ -426,6 +426,10 @@
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