Added a pop up message for E_DEVICE_FAILED during H263 recording
authorRahul Varna <rahul.varna@samsung.com>
Thu, 21 Nov 2013 12:01:30 +0000 (17:31 +0530)
committerRahul Varna <rahul.varna@samsung.com>
Thu, 21 Nov 2013 12:01:30 +0000 (17:31 +0530)
Signed-off-by: Rahul Varna <rahul.varna@samsung.com>
project/src/Player/VideoRecorderPlayerForm.cpp

index 8460b69..a052117 100644 (file)
@@ -1306,7 +1306,6 @@ VideoRecorderPlayerForm::OnVideoRecorderClosed(result r)
        else
        {
                FreeResources();
-               VideoRecorderPlayerForm::Activate(null);
                AppLog("Could not launch the mediaplayer");
        }
 }
@@ -1331,6 +1330,9 @@ VideoRecorderPlayerForm::ConvertRecorderErrorToError(Tizen::Media::RecorderError
        result res = E_SUCCESS;
        switch (r)
        {
+               case RECORDER_ERROR_DEVICE_FAILED:
+                       res = E_DEVICE_FAILED;
+                       break;
                case RECORDER_ERROR_OUT_OF_STORAGE:
                        //fall through
                case RECORDER_ERROR_STORAGE_FAILED:
@@ -1353,8 +1355,9 @@ VideoRecorderPlayerForm::OnVideoRecorderErrorOccurred(Tizen::Media::RecorderErro
        res = ConvertRecorderErrorToError(r);
        if (res != E_SUCCESS)
        {
-               __pCamera->StopPreview();
                ShowErrorResult(res, METHOD_FILE_LINENO);
+               StopPlayer();
+               __pCamera->StopPreview();
                return;
        }
        else