Gst played: removed GST_SEEK_FLAG_ACCURATE flag
Forcing accurate seeking may be very slow for some files, it's not intended to be used with media players. Change-Id: I9fe759f6effa447a800aeea321cc46617c64866f Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com> Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com> Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
48e4758a46
commit
69c1ecbffd
@@ -324,7 +324,7 @@ void QGstreamerPlayerSession::setPlaybackRate(qreal rate)
|
||||
m_playbackRate = rate;
|
||||
if (m_playbin) {
|
||||
gst_element_seek(m_playbin, rate, GST_FORMAT_TIME,
|
||||
GstSeekFlags(GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH),
|
||||
GstSeekFlags(GST_SEEK_FLAG_FLUSH),
|
||||
GST_SEEK_TYPE_NONE,0,
|
||||
GST_SEEK_TYPE_NONE,0 );
|
||||
}
|
||||
@@ -886,7 +886,7 @@ bool QGstreamerPlayerSession::seek(qint64 ms)
|
||||
bool isSeeking = gst_element_seek(m_playbin,
|
||||
m_playbackRate,
|
||||
GST_FORMAT_TIME,
|
||||
GstSeekFlags(GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH),
|
||||
GstSeekFlags(GST_SEEK_FLAG_FLUSH),
|
||||
GST_SEEK_TYPE_SET,
|
||||
position,
|
||||
GST_SEEK_TYPE_NONE,
|
||||
|
||||
Reference in New Issue
Block a user