[vlc-devel] [PATCH] MMS/TCP streaming: error while asking for file

bl4 bl4 at playker.info
Thu May 22 23:41:47 CEST 2008


Hi,

This patches fixes an "error while asking for file" in MMS over TCP 
streaming. It happens after vlc sends requested media file path to the 
server. Path is taken from the url, it includes '/' at the beginning. 
It's not correct, according to the MMS protocol specification paths 
don't start with '/'. Server may respond with error, in this case 
streaming can't be started. This patch makes sure that the path is sent 
to the server without leading / character.

I have tested it on http://www.bbc.co.uk/radio/ World News Bulletin. 
Here's a fragment of vlc output before applying the patch:

$ ./vlc --verbose 1 
mms://a406.v39440a.c39440.e.vm.akamaistream.net/7/406/39440/200805211240/bbcworldservice.download.akamai.com/39440/worldservice/tx/nb/summary5min.wma 

[00000367] main demux warning: no access_demux module matched "mms"
[00000368] access_mms access error: error while asking for file -1
[00000368] access_mms access error: error while asking for file -1
[00000368] access_mms access error: cannot connect to server
[00000368] access_mms access error: cannot read data 2
# and fallback to MMS/HTTP

After applying the patch:

$ ./vlc --verbose 1 
mms://a406.v39440a.c39440.e.vm.akamaistream.net/7/406/39440/200805211240/bbcworldservice.download.akamai.com/39440/worldservice/tx/nb/summary5min.wma
[00000368] main demux warning: no access_demux module matched "mms"
[00000369] access_mms access: selecting stream[0x1] audio (31 kb/s)
[00000369] access_mms access: ignoring stream[0x2] audio (20 kb/s)
[00000369] access_mms access: connection successful
# and it starts playing

-- 
bl4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmstu_mediapath.patch
Type: text/x-patch
Size: 814 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080522/5d2d0a77/attachment.bin>


More information about the vlc-devel mailing list