[MPlayer-dev-eng] [PATCH] A bit of stream cleanup, lots of 10l fix for audio only and finnaly http seeking :)

Alban Bedel albeu at free.fr
Wed Sep 3 17:33:12 CEST 2003


Hi,

I wanted to add seeking to http but the stream layer is ... old ;)
So first i got rid of the STREAMTYPE_STREAM hack. In various place
it was assumed that STREAMTYPE_STREAM mean that the stream isn't seekable.
To complicate a bit more STREAMTYPE_STREAM was used for both pipe and
network. So i addeded a new STREAMTYPE_NETWORK for the network streams
and used the new ->flags to check for seeking avaibility.
So now forward seeking in pipe work really and it's possible to have
seeking with more network protocol.

While testing i run into a lot of bugs with the audio only mode. Some
of them was real 100L :(
I fixed the % display so it doesn't jump anymore to strange values.
While at it i also cheked -audiofile wich was broken too :(
With this patch it work again. Note that it's seems even usable with ogg
files. I dumped the sound from a movie, encoded it with oggenc and then
using -audiofile i get perfect sync during playback.
What most surprised me was that even seeking seems realiable (well, by using
-mc 5 and beeing patient while waiting for the A/V sync keep up again ;)

Anyway the initial goal was http seeking ;) The second patch do that.
Comments ??
	Albeu
-- 

Everything is controlled by a small evil group
to which, unfortunately, no one we know belongs.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream-and-audio.diff
Type: application/octet-stream
Size: 15268 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030903/42914247/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-seeking.diff
Type: application/octet-stream
Size: 6050 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030903/42914247/attachment-0001.obj>


More information about the MPlayer-dev-eng mailing list