phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 45 6b911d05207e
--- a/phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp	Tue Jun 15 14:14:38 2010 +0100
+++ b/phoneapp/phoneringingtoneplayer/src/cphoneaudioplayer.cpp	Thu Jul 22 16:33:21 2010 +0100
@@ -997,11 +997,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;    
         }