equal
deleted
inserted
replaced
178 |
178 |
179 if (iMediaServerError != KErrNone ) |
179 if (iMediaServerError != KErrNone ) |
180 { |
180 { |
181 |
181 |
182 // when mmc card is used and unpluged, this error returned |
182 // when mmc card is used and unpluged, this error returned |
183 if (iMediaServerError == KErrCorrupt) |
183 if (iMediaServerError == KErrCorrupt || iMediaServerError == KErrNotReady) |
184 { |
184 { |
185 iAudioRecorder->Close(); |
185 CVRRecViewModel* iViewModel = NULL; |
186 dynamic_cast <CVRRecViewModel*>(iAutoStopObserver)->HandleCommandL(EEikCmdExit); |
186 //iAudioRecorder->Close(); |
|
187 iViewModel = dynamic_cast <CVRRecViewModel*>(iAutoStopObserver); |
|
188 if(iViewModel != NULL) |
|
189 { |
|
190 iViewModel->HandleCommandL(EEikCmdExit); |
|
191 } |
|
192 else |
|
193 { |
|
194 CEikonEnv::Static()->EikAppUi()->HandleCommandL( EAknSoftkeyExit); |
|
195 } |
187 } |
196 } |
188 |
197 |
189 // Media server reports KErrDied if the playing was interrupted |
198 // Media server reports KErrDied if the playing was interrupted |
190 // by some other system sound triggered by for example incoming SMS |
199 // by some other system sound triggered by for example incoming SMS |
191 |
200 |