[MPlayer-dev-eng] [PATCH] Seek in http-streams

Valentine Zaretsky valik+mplayerdev at email.dp.ua
Sat Jan 10 14:46:42 CET 2004


Hi!

This patch allows to seek in http-stream if server supports partial
content requests (ranges).
Patch is rather simple.

Changes are:
- http_send_request extended to be able to send Range: header if needed
- type of the second argument in streaming_seek callback of 
streaming_ctrl_t structure has been changed to stream_t* (from 
streaming_ctrl_t*) because we need new to open new connection in order 
to seek on http and thus close old stream->fd and assign new one, so 
streaming_ctrl_t is not enough
- new http_streaming_seek function doing the main job


--
Best regards, Valentine


-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-patch
Type: application/octet-stream
Size: 9865 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040110/1578961e/attachment.obj>


More information about the MPlayer-dev-eng mailing list