Internal issue Fixes
[apps/osp/Camera.git] / src / CmCameraStarterThread.cpp
index d19b161..1038590 100644 (file)
@@ -71,6 +71,8 @@ CameraStarterThread::CreateInstance(void)
        if (IsFailed(r))
        {
                AppLogDebug("IsFailed");
+               __pCameraStarterThread->Stop();
+               __pCameraStarterThread->Join();
                delete __pCameraStarterThread;
                __pCameraStarterThread = null;
                return r;
@@ -85,6 +87,9 @@ void
 CameraStarterThread::DestroyInstance(void)
 {
        AppLogDebug("ENTER");
+
+       __pCameraStarterThread->Stop();
+       __pCameraStarterThread->Join();
        delete __pCameraStarterThread;
        __pCameraStarterThread = null;
        AppLogDebug("EXIT");
@@ -126,6 +131,18 @@ CameraStarterThread::SetBufferinfo(Tizen::Graphics::BufferInfo* bufferinfo)
        return E_SUCCESS;
 }
 
+bool
+CameraStarterThread::OnStart(void)
+{
+       return true;
+}
+
+void
+CameraStarterThread::OnStop(void)
+{
+       //empty implementation
+}
+
 Object*
 CameraStarterThread::Run(void)
 {