summaryrefslogtreecommitdiffstats
path: root/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java')
-rwxr-xr-x[-rw-r--r--]src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
index 6b5a9bef0..0768e78fc 100644..100755
--- a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
+++ b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
@@ -461,6 +461,17 @@ public class CodeauroraVideoView extends SurfaceView implements MediaPlayerContr
clearVideoInfo();
if (mUri == null || mSurfaceHolder == null || mTargetState == STATE_ERROR) {
// not ready for playback just yet, will try again later
+ if (mSurfaceHolder == null) {
+ setVisibility(GONE);
+ getHolder().removeCallback(mSHCallback);
+ getHolder().addCallback(mSHCallback);
+ postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ setVisibility(VISIBLE);
+ }
+ },500);
+ }
return;
}