messagingappbase/msgeditor/mediacontrolsrc/MsgAudioControl.cpp
branchRCL_3
changeset 25 fa1df4b99609
parent 0 72b543305e3a
--- a/messagingappbase/msgeditor/mediacontrolsrc/MsgAudioControl.cpp	Thu Jul 15 18:34:37 2010 +0300
+++ b/messagingappbase/msgeditor/mediacontrolsrc/MsgAudioControl.cpp	Thu Aug 19 09:51:11 2010 +0300
@@ -343,6 +343,11 @@
             SetState( EMsgAsyncControlStateNoRights );
             break;
             }
+		case KErrInUse: // To handle if head phone is removed from the jack while playing audio.
+            {
+            Stop();
+            break;
+            }
         case KErrNoMemory:
         case KErrNotSupported:
         case KErrCorrupt: