[MPlayer-dev-eng] [PATCH] http streaming issues

Alexander Kanavin alexander.kanavin at nokia.com
Wed Jun 25 08:23:57 CEST 2008


Hi folks,

I've discovered a couple problems with http streaming in mplayer, and wrote 
two patches that fix them:

1) Some web servers don't provide a way to seek within a file (example:
Nokia N-series phones), because "Accept-range" http header is absent. MP3
playback code however tries to seek to the end of the file to read some
tags. This fails and all kinds of breakage follows. 730_mp3-streaming.diff
makes mplayer only do the seeking if the stream allows it.

2) ASF streaming code relies on having first few bytes of the stream body
available when it parses the http headers, however it only ensures that the
entire http header is available when reading from a socket, and doesn't
ensure that the beginning of the body is available as well. Some web
servers, such as Windows Media Player in Windows Vista, send the headers
and the body in separate TCP packets, so the body isn't read at all and
this breaks ASF playback. 740_asf-streaming.diff fixes that.

Let me know if you need further explanation.

Alex

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 740_asf-streaming.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080625/6f74db22/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 730_mp3-streaming.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080625/6f74db22/attachment.txt>


More information about the MPlayer-dev-eng mailing list