Merge "Fix issue 3404563. Overlay is not seen when the clip is trimmed in the beginning." into honeycomb
diff --git a/libvideoeditor/lvpp/VideoEditorPreviewController.cpp b/libvideoeditor/lvpp/VideoEditorPreviewController.cpp
index 7f63eb3..5128a41 100755
--- a/libvideoeditor/lvpp/VideoEditorPreviewController.cpp
+++ b/libvideoeditor/lvpp/VideoEditorPreviewController.cpp
@@ -1068,6 +1068,8 @@
         pController->mPrepareReqest = M4OSA_FALSE;

         preparePlayer((void*)pController, pController->mCurrentPlayer,

             pController->mCurrentClipNumber+1);

+        err = M4OSA_semaphoreWait(pController->mSemThreadWait,

+            M4OSA_WAIT_FOREVER);

     } else {

         if (!pController->bStopThreadInProgress) {

             LOGV("threadProc: state busy...wait for sem");