phoneapp/phoneuiview/src/cphoneaudioplayer.cpp
branchRCL_3
changeset 9 8871b09be73b
parent 0 5f000ab63145
child 15 2a26698d78ba
--- a/phoneapp/phoneuiview/src/cphoneaudioplayer.cpp	Tue Feb 02 00:10:04 2010 +0200
+++ b/phoneapp/phoneuiview/src/cphoneaudioplayer.cpp	Fri Feb 19 22:50:26 2010 +0200
@@ -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);
             }