--- a/phoneapp/phoneuiview/src/cphoneaudioplayer.cpp Mon Mar 08 21:43:24 2010 +0000
+++ b/phoneapp/phoneuiview/src/cphoneaudioplayer.cpp Sun Mar 14 13:09:36 2010 +0000
@@ -998,11 +998,11 @@
TInt result( 0 );
- if ( iFormat == EFormatTone )
+ if ( iFormat == EFormatTone && iTonePlayer )
{
result = iTonePlayer->MaxVolume() * aVolume / KMaxVolumeLevel;
}
- else if ( iFormat == EFormatTts )
+ else if ( iFormat == EFormatTts && iTtsPlayer )
{
result = iTtsPlayer->MaxVolume() * aVolume / KMaxVolumeLevel;
}
@@ -1041,11 +1041,11 @@
//_DPRINT( 5, "P.Aud.Mute" );
if ( iPlayerStatus == ETonePlaying )
{
- if ( iFormat == EFormatTone )
+ if ( iFormat == EFormatTone && iTonePlayer )
{
iTonePlayer->SetVolume(0);
}
- else if ( iFormat == EFormatTts )
+ else if ( iFormat == EFormatTts && iTtsPlayer )
{
iTtsPlayer->SetVolume(0);
}