fix bug when destroying
authorSukwon Suh <sukwon.suh@samsung.com>
Mon, 25 Mar 2013 11:03:22 +0000 (20:03 +0900)
committerSukwon Suh <sukwon.suh@samsung.com>
Mon, 25 Mar 2013 11:39:02 +0000 (20:39 +0900)
Change-Id: I41ea6f5f6f4d85c3caf5d8afa3ac270f22b64f0d
Signed-off-by: Sukwon Suh <sukwon.suh@samsung.com>
project/src/GlesVideoTexture.cpp

index 93aaaa7..d3a542e 100644 (file)
@@ -161,8 +161,13 @@ GlesVideoTexture::Cleanup(void)
                __pTimer = null;
        }
 
-       DestroyGL();
+       if (__pPlayer != null)
+       {
+               __pPlayer->Stop();
+       }
+
        DestroyVideoTexture();
+       DestroyGL();
 }