Added pop up message for E_DEVICE_FAILED recording error
authorRahul Varna <rahul.varna@samsung.com>
Tue, 19 Nov 2013 09:38:27 +0000 (15:08 +0530)
committerRahul Varna <rahul.varna@samsung.com>
Tue, 19 Nov 2013 09:38:27 +0000 (15:08 +0530)
Signed-off-by: Rahul Varna <rahul.varna@samsung.com>
project/src/Recorder/AudioRecorderForm.cpp
project/src/Recorder/VideoRecorderForm.cpp

index 1ebfd0b..cdd0057 100644 (file)
@@ -464,7 +464,7 @@ AudioRecorderForm::OnInitializing(void)
        TryCatch(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO),"[%s] _pEditArea->SetEnabled", GetErrorMessage(r));
 
        __pTimer = new (std::nothrow) Timer;
-       TryCatch(__pEditArea != null, r = E_OUT_OF_MEMORY," __pTimer new failed");
+       TryCatch(__pTimer != null, r = E_OUT_OF_MEMORY," __pTimer new failed");
 
        r = __pTimer->Construct(*this);
        TryCatch(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO),"[%s] __pTimer->Construct", GetErrorMessage(r));
index 68009f8..9c7a006 100644 (file)
@@ -1391,6 +1391,8 @@ VideoRecorderForm::Activate(void* pActivateParam)
        }
        ShowFooterItem(2, true);
 
+       Form::OnDraw(); //To show accessibility ring
+
        return E_SUCCESS;
 CATCH:
        // Free resource is done when the error pop up Ok is pressed
@@ -4458,6 +4460,13 @@ VideoRecorderForm::OnVideoRecorderClosed(result r)
                        }
                }
                break;
+               case CAMERA_ERROR_DEVICE_FAILED:
+               {
+                       //show popup and go back to menu
+                       ShowMessagePopup("Video Recorder Error occurred - Device failed", ID_BUTTON_ERROR_POPUP_OK);
+               }
+               break;
+
                case CAMERA_ERROR_DEVICE_INTERRUPTED:
                {
                        ResetTimeVariables();
@@ -4518,6 +4527,7 @@ VideoRecorderForm::OnVideoRecorderErrorOccurred(Tizen::Media::RecorderErrorReaso
                ShowErrorResult(res, METHOD_FILE_LINENO);
                return;
        }
+       __pVideoRecorder->Cancel();
        __pVideoRecorder->Close();
        __pTimer->Cancel();