Crash in prepare player. Issue No 3403342

Avoid race in preparing the same player twice.

Change-Id: I5a735e54b94cd0dd435a066a92b1353e761eafc6
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");