GNOME Bugzilla – Bug 659186
Disallow seek in live streaming
Last modified: 2011-11-03 11:58:26 UTC
Run test-readme.c and use two VLC instances to test. The first runs fine, but the second one triggers a seek which could result in both clients being disconnected. VLC puts "Range: npt=0.000-" in the PLAY command which triggers a seek to time 0. It could be considered a bug in VLC. The correct request should be "Range: npt=now-". In any case, the point is that a misbehaving client can bring down all clients. Seek should not be allowed in live streams. I guess the best thing is to ignore the Range in the PLAY request.
Created attachment 196745 [details] [review] Proposed patch
There was some discussion recently about allowing seeking at all in shared streams, which is related. But yes, attempting to seek in live streams is not a good idea.
Thanks, commited. I also commited a patch to use a different variable because seekability has not much to do with being a live stream or not (RTSP streams are considered live but can be seekable) commit 526bbb5a8fab7bf5a83f871819442bb2cc6dd26a Author: Victor Gottardi <vgottardi@hotmail.com> Date: Fri Sep 16 11:31:17 2011 -0400 Disallow seek in live media