--- a/musichomescreen_multiview/mcpmusicplayer/src/aiplayerpluginengine.cpp Thu Jul 15 18:35:42 2010 +0300
+++ b/musichomescreen_multiview/mcpmusicplayer/src/aiplayerpluginengine.cpp Thu Aug 19 09:52:08 2010 +0300
@@ -382,9 +382,15 @@
case TMPXPlaybackMessage::EMediaChanged:
case TMPXPlaybackMessage::EPlaylistUpdated:
{
- iPlaybackUtility->PropertyL( *this, EPbPropertyPosition );
- iPlaybackUtility->PropertyL( *this, EPbPropertyDuration );
- RequestMediaL();
+ MMPXSource* s = iPlaybackUtility->Source();
+ if ( s )
+ {
+ RequestMediaL();
+ }
+ else
+ {
+ iObserver->PlaylisIsEmpty();
+ }
break;
}
case TMPXPlaybackMessage::ECommandReceived:
@@ -540,9 +546,5 @@
s->MediaL( attrs.Array(), *this );
CleanupStack::PopAndDestroy( &attrs );
}
- else
- {
- iObserver->PlaylisIsEmpty();
- }
}
// End of File