[TSAM-9321]Default error case handled 70/93970/1
authorAlka Sethi <alka.sethi@samsung.com>
Wed, 26 Oct 2016 11:05:31 +0000 (16:35 +0530)
committerAlka Sethi <alka.sethi@samsung.com>
Wed, 26 Oct 2016 11:05:31 +0000 (16:35 +0530)
Change-Id: I7089cc0cb3b0abbc2427b143ae0edf7669670805
Signed-off-by: Alka Sethi <alka.sethi@samsung.com>
playview/src/view/vp-play-normal-view.c

index ebe2215..a903a6f 100644 (file)
@@ -4400,6 +4400,29 @@ static void __vp_normal_error_cb(vp_mm_player_error_t nError, void *pUserData)
                break;
        default:
                VideoLogWarning("UNKNOWN TYPE : %d", nError);
+               if (pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ONE ||
+                               pNormalView->nRepeatMode == VIDEO_PLAY_REPEAT_ALL) {
+                               PlayView *pPlayView = pNormalView->pPlayView;
+                               if (!pPlayView) {
+                                       VideoLogError("pPlayView is NULL");
+                                       return;
+                               }
+                               if (!pPlayView->pFunc) {
+                                       VideoLogError("pPlayView pFunc is NULL");
+                                       return;
+                               }
+
+                               if (!pPlayView->pFunc->vp_play_func_exit) {
+                                       VideoLogError("pPlayView exit Func is NULL");
+                                       return;
+                               }
+                               vp_device_set_screen_off(FALSE);
+                               vp_play_util_set_unlock_power_key();
+
+                               pPlayView->pFunc->vp_play_func_exit(pPlayView);
+                       } else {
+                               _vp_play_normal_view_on_next_play(pNormalView, FALSE);
+                       }
                break;
        }