Blackberry: Assert that we are in detached state
Change-Id: I744d542374c72318b548407cd3da084449822e92 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
committed by
Qt by Nokia
parent
5ce50b5fc7
commit
cfa44b12be
@@ -181,6 +181,9 @@ QString BbMediaPlayerControl::resourcePathForUrl(const QUrl &url)
|
|||||||
|
|
||||||
void BbMediaPlayerControl::attach()
|
void BbMediaPlayerControl::attach()
|
||||||
{
|
{
|
||||||
|
// Should only be called in detached state
|
||||||
|
Q_ASSERT(m_audioId == -1 && !m_inputAttached && m_tempMediaFileName.isEmpty());
|
||||||
|
|
||||||
if (m_media.isNull() || !m_context) {
|
if (m_media.isNull() || !m_context) {
|
||||||
setMediaStatus(QMediaPlayer::NoMedia);
|
setMediaStatus(QMediaPlayer::NoMedia);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user