qml: fix play() after pause()

This commit is contained in:
wang-bin
2016-04-27 15:16:51 +08:00
parent b42c41de78
commit 5ee8efbee2
+1 -1
View File
@@ -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);
}