summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
index c6956e68c..aae691d55 100644
--- a/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
+++ b/src/org/codeaurora/gallery3d/video/CodeauroraVideoView.java
@@ -188,7 +188,7 @@ public class CodeauroraVideoView extends SurfaceView implements MediaPlayerContr
Log.v(TAG, "onMeasure() mNeedWaitLayout=" + mNeedWaitLayout);
}
setMeasuredDimension(width, height);
- if (mNeedWaitLayout) { // when OnMeasure ok, start video.
+ if (mNeedWaitLayout || mCurrentState == STATE_PREPARING) { // when OnMeasure ok, start video.
mNeedWaitLayout = false;
mHandler.sendEmptyMessage(MSG_LAYOUT_READY);
}