don't seek if the current position is the same
This commit is contained in:
committed by
Martin Jones
parent
a824c2da1a
commit
c895f17f7b
@@ -970,6 +970,13 @@ void QGstreamerPlayerSession::stop()
|
||||
|
||||
bool QGstreamerPlayerSession::seek(qint64 ms)
|
||||
{
|
||||
if (ms == position()) {
|
||||
#ifdef DEBUG_PLAYBIN
|
||||
qDebug() << "not seeking because the current position and requested position are the same";
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_PLAYBIN
|
||||
qDebug() << Q_FUNC_INFO << ms;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user