don't seek if the current position is the same

This commit is contained in:
Mohammed Hassan
2015-04-17 14:40:55 +03:00
committed by Martin Jones
parent a824c2da1a
commit c895f17f7b

View File

@@ -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