From 5ee8efbee2b0625e19fb8a87e99946394b03ffe4 Mon Sep 17 00:00:00 2001 From: wang-bin Date: Wed, 27 Apr 2016 15:16:51 +0800 Subject: [PATCH] qml: fix play() after pause() --- qml/QmlAVPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/QmlAVPlayer.cpp b/qml/QmlAVPlayer.cpp index 93458e94..60034a74 100644 --- a/qml/QmlAVPlayer.cpp +++ b/qml/QmlAVPlayer.cpp @@ -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); }