From 13c7c4994bc95316643cf247a0047d3e52543c94 Mon Sep 17 00:00:00 2001 From: Sukwon Suh Date: Fri, 26 Apr 2013 16:11:54 +0900 Subject: [PATCH] fix bug when phone call Change-Id: I02288d67b0f1a0a3a34595ece703e4b61e2884f9 Signed-off-by: Sukwon Suh --- project/src/GlesVideoTexture.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/src/GlesVideoTexture.cpp b/project/src/GlesVideoTexture.cpp index 8973ffc..c489c6d 100644 --- a/project/src/GlesVideoTexture.cpp +++ b/project/src/GlesVideoTexture.cpp @@ -593,6 +593,12 @@ GlesVideoTexture::Update(void) bool GlesVideoTexture::Draw(void) { + PlayerState ret = __pPlayer->GetState(); + if (ret != PLAYER_STATE_PLAYING) + { + __pPlayer->Play(); + } + if (eglMakeCurrent(__eglDisplay, __eglSurface, __eglSurface, __eglContext) == GL_FALSE || eglGetError() != EGL_SUCCESS) { -- 2.7.4