Fix QGstreamerPlayerSession::availablePlaybackRanges()
authorAndras Becsi <andras.becsi@digia.com>
Wed, 7 Nov 2012 17:51:16 +0000 (18:51 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 28 Nov 2012 16:32:06 +0000 (17:32 +0100)
commit25fd41373abdfe967b892173783687262a70139d
tree3b64f38cb465615e215572347c79709903e2ee7d
parente899ff8c5ac6eacc0e031931b3054b1cb8725081
Fix QGstreamerPlayerSession::availablePlaybackRanges()

Since buffering information through buffering queries is only valid if
progressive download buffering (on-disk caching) is enabled or local
media is played and we explicitly disable on-disk buffering because of
cleanup issues with gstreamer availablePlaybackRanges() always returns
an empty range for online media.
Seeking is also possible using http range requests therefore if valid
playback ranges could not be determined we should return the [0..duration]
range unless the source is a live stream or the duration is unknown.

Change-Id: Idbebc0fdde5053c6f9c0b3794c6d122492c6239c
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp
src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.h