From 6ec03b5d8c92295ed667a21eab2680f535ce9fc2 Mon Sep 17 00:00:00 2001 From: Alka Sethi Date: Wed, 26 Oct 2016 16:35:31 +0530 Subject: [PATCH] [TSAM-9321]Default error case handled Change-Id: I7089cc0cb3b0abbc2427b143ae0edf7669670805 Signed-off-by: Alka Sethi --- playview/src/view/vp-play-normal-view.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/playview/src/view/vp-play-normal-view.c b/playview/src/view/vp-play-normal-view.c index ebe2215..a903a6f 100644 --- a/playview/src/view/vp-play-normal-view.c +++ b/playview/src/view/vp-play-normal-view.c @@ -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; } -- 2.7.4