[vlc-devel] [vlc-commits] http filters: pause not implemented, pace control not supported

Rémi Denis-Courmont remi at remlab.net
Mon May 27 10:13:35 CEST 2013


On Mon, 27 May 2013 09:58:23 +0300, Ilkka Ollakka <ileoo at videolan.org>
wrote:
>> > > Yes you are right. But then again http and file access marks
>> > > PAUSE/CONTROL_PACE as supported (file access for normal files).
> 
>> > The file access does support pause and pace control.
> 
>> > The HTTP access does not and it's a known bug (streaming fails if
>> > paused for longer than a few seconds).
> 
>> So there is just missing code for filter to check/use access
>> control_pace/pause abilities?

Regular files, block devices and directories do not need any code to pause
or pace. There will be no unrecoverable error if you leave the file
descriptor open for a long time without reading from it.

For TCP sockets, including HTTP, it is not so. The connection will time
out and the socket unrecoverably fail if the receiver fails to dequeue data
for a certain period of time. So you need special code to deal with the
time out or to avoid it altogether. That code is not in place to date in
the HTTP. That is why HTTP streaming breaks when you pause it for longer
than a few tens of seconds. Strictly speaking, it should thus not claim to
support pause until it is actually implemented. The same goes for live HTTP
streaming.

As for pace control, it makes no sense for anything that is live.

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list