--- a/mmsharing/mmshengine/src/musengmcesession.cpp Wed Jun 09 09:37:52 2010 +0300
+++ b/mmsharing/mmshengine/src/musengmcesession.cpp Mon Jun 21 15:36:50 2010 +0300
@@ -328,6 +328,11 @@
EXPORT_C TBool CMusEngMceSession::IsDisplayEnabledL()
{
__ASSERT_ALWAYS( iSession, User::Leave( KErrNotReady ) );
+ if ( iSession->State() == CMceSession::ETerminated ||
+ iSession->State() == CMceSession::EIdle )
+ {
+ return EFalse;
+ }
CMceDisplaySink* display = MusEngMceUtils::GetDisplayL( *iSession );
return display->IsEnabled();
}