rtsp-media: don't loose frames handling new PLAY request
authorBranko Subasic <branko@axis.com>
Tue, 18 Feb 2014 08:44:34 +0000 (09:44 +0100)
committerWim Taymans <wtaymans@redhat.com>
Tue, 18 Feb 2014 15:59:41 +0000 (16:59 +0100)
commit7ed2a6ef98d75085c47053c5d4bd7ae99c44d84d
treeed252e3123233f3bd8d60e3493c490fb5d027bde
parent73551543b8ace6b43801b1744c392130b63a0730
rtsp-media: don't loose frames handling new PLAY request

If client supplied a range check if the range specifies the start point.
If not, then do an accurate seek to the current position. If a start
point was specified do do a key unit seek to make sure the streaming
starts with decodeable frames.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=724611
gst/rtsp-server/rtsp-media.c