mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-25 09:23:23 +08:00
qml: fix play() after pause()
This commit is contained in:
+1
-1
@@ -660,7 +660,7 @@ void QmlAVPlayer::play(const QUrl &url)
|
||||
void QmlAVPlayer::play()
|
||||
{
|
||||
// if not autoPlay, maybe a different source was set and play() was not called
|
||||
if (isAutoLoad() && (playbackState() != StoppedState || m_loading))
|
||||
if (isAutoLoad() && (playbackState() == PlayingState || m_loading))
|
||||
return;
|
||||
setPlaybackState(PlayingState);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user