Demo entry 6716873

c

   

Submitted by anonymous on Feb 22, 2018 at 10:20
Language: C. Code size: 2.1 kB.

diff --git a/trapezoid/svcserver/DrawingThread.cpp b/trapezoid/svcserver/DrawingThread.cpp
index d78c0ad..68b9127 100644
--- a/trapezoid/svcserver/DrawingThread.cpp
+++ b/trapezoid/svcserver/DrawingThread.cpp
@@ -198,7 +198,7 @@
         mDrawingParameters.horRotateDegree = 0.0f;
         mDrawingParameters.verRotateDegree = 0.0f;
         mDrawingParameters.enable3D = false;
-        mDrawingParameters.videoTrapezoidRequest = E_TRAPEZOID_VIDEO_INVALID;
+        mDrawingParameters.videoTrapezoidRequest = E_TRAPEZOID_VIDEO_START;
         mDrawingParameters.trapezoidCorrectType= TRAPEZOID_CORRECT_TYPE_QC_OFFSET;
         mCurrentParameters = mDrawingParameters;
         mDisplayThread = new DisplayThread();
@@ -329,15 +329,17 @@
     {
         Mutex::Autolock _l(mParametersMutex);
         request = mCurrentParameters.videoTrapezoidRequest;
+        //ALOGI("Drawing thread getTrapezoidVideoRequest request=%d",request);
         return NO_ERROR;
     }
    status_t DrawingThread::setTrapezoidVideoRequest(E_TRAPEZOID_VIDEO_REQUEST request)
    {
          Mutex::Autolock _l(mParametersMutex);
          mCurrentParameters.videoTrapezoidRequest  = request;
+         ALOGI("Drawing thread setTrapezoidVideoRequest mCurrentParameters.videoTrapezoidRequest=%d",mCurrentParameters.videoTrapezoidRequest);
          if (request == E_TRAPEZOID_VIDEO_START) {
             mDisplayThread->setVisible(true);
-         } else if (request == E_TRAPEZOID_VIDEO_START) {
+         } else if (request == E_TRAPEZOID_VIDEO_STOP) {
             mDisplayThread->setVisible(false);
          }
          return NO_ERROR;
@@ -1444,7 +1446,7 @@
         MApi_GOP_GWIN_SetWinInfo(mGwinId,&pinfo);
         if (request == E_TRAPEZOID_VIDEO_STOP) {
             MApi_GOP_GWIN_Enable(mGwinId, false);
-        } else {
+        } else if (request == E_TRAPEZOID_VIDEO_START){
             MApi_GOP_GWIN_Enable(mGwinId, true);
         }
         if ( (mTimingWidth != curTimingWidth)||(mTimingHeight != curTimingHeight)) {

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).