[MPlayer-users] Current CVS breaks playing asx-over-http streams
Bernhard Rosenkraenzer
bero at arklinux.org
Wed Dec 3 02:32:56 CET 2003
On Thu, 13 Nov 2003, Attila Kinali wrote:
> > [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> > SSIA - Several asx streams that work with CVS from about
> > a month ago break with current CVS, e.g.
> > http://www.researchchannel.org/webcast/asx/rtv-lan.asx
>
> Can you try to nail down the change that broke this
Sorry for the delay, I'm rather busy at the moment.
I've tracked it down to the following change:
diff -urN --exclude CVS mplayer-20031101/libmpdemux/asf_streaming.c mplayer-20031102/libmpdemux/asf_streaming.c
--- mplayer-20031101/libmpdemux/asf_streaming.c 2003-09-25 02:36:04.000000000 +0200
+++ mplayer-20031102/libmpdemux/asf_streaming.c 2003-11-01 15:10:32.000000000 +0100
@@ -421,7 +421,8 @@
if( content_type==NULL ) return ASF_Unknown_e;
if( !strcasecmp(content_type, "application/octet-stream") ||
!strcasecmp(content_type, "application/vnd.ms.wms-hdr.asfv1") || // New in Corona, first request
- !strcasecmp(content_type, "application/x-mms-framed") ) { // New in Corana, second request
+ !strcasecmp(content_type, "application/x-mms-framed") || // New in Corana, second request
+ !strcasecmp(content_type, "video/x-ms-asf")) {
if( strstr(features, "broadcast") ) {
mp_msg(MSGT_NETWORK,MSGL_V,"=====> ASF Live stream\n");
Applying the reversion of this to current CVS fixes the problem (for the
sample URL mentioned above and at least 8 others I've tried).
All those sites do transmit video/x-ms-asf MIME types even for ASF
redirections.
Fix for current CVS (reverting the problematic change -- there's probably
a more intelligent way to fix it though, like checking for a redirector
if one of the mime types matches) attached.
LLaP
bero
--
Ark Linux - Linux for the masses
http://www.arklinux.org/
Redistribution and processing of this message is subject to
http://www.arklinux.org/terms.php
-------------- next part --------------
diff -urN mplayer/libmpdemux/asf_streaming.c mplayer-bero/libmpdemux/asf_streaming.c
--- mplayer/libmpdemux/asf_streaming.c 2003-11-02 15:57:34.000000000 +0100
+++ mplayer-bero/libmpdemux/asf_streaming.c 2003-12-03 02:33:29.000000000 +0100
@@ -421,8 +421,7 @@
if( content_type==NULL ) return ASF_Unknown_e;
if( !strcasecmp(content_type, "application/octet-stream") ||
!strcasecmp(content_type, "application/vnd.ms.wms-hdr.asfv1") || // New in Corona, first request
- !strcasecmp(content_type, "application/x-mms-framed") || // New in Corana, second request
- !strcasecmp(content_type, "video/x-ms-asf")) {
+ !strcasecmp(content_type, "application/x-mms-framed") ) { // New in Corana, second request
if( strstr(features, "broadcast") ) {
mp_msg(MSGT_NETWORK,MSGL_V,"=====> ASF Live stream\n");
More information about the MPlayer-users
mailing list