After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659186 - Disallow seek in live streaming
Disallow seek in live streaming
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
git master
Other All
: Normal normal
: 0.10.9
Assigned To: David Schleef
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-09-15 20:47 UTC by Victor Gottardi
Modified: 2011-11-03 11:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (845 bytes, patch)
2011-09-16 16:14 UTC, Victor Gottardi
none Details | Review

Description Victor Gottardi 2011-09-15 20:47:14 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.
Comment 1 Victor Gottardi 2011-09-16 16:14:39 UTC
Created attachment 196745 [details] [review]
Proposed patch
Comment 2 David Schleef 2011-09-17 20:02:45 UTC
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.
Comment 3 Wim Taymans 2011-11-03 11:58:26 UTC
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