Fix for N_SE-48115
authorAbhismita Ghosh <g.abhismita@samsung.com>
Fri, 2 Aug 2013 07:35:22 +0000 (16:35 +0900)
committerAbhismita Ghosh <g.abhismita@samsung.com>
Fri, 2 Aug 2013 07:39:13 +0000 (16:39 +0900)
Change-Id: I96ce48ed8a7d3fd6902bebe2208f418475686bef

src/VpVideoPlayerForm.cpp

index a9f191e..19a82bd 100644 (file)
@@ -1187,28 +1187,15 @@ void
 VideoPlayerForm::OnTouchPressed(const Control& source, const Point& currentPosition,
                const TouchEventInfo& touchInfo)
 {
-       AppLogDebug("OnTouchPressed");
+       AppLogDebug("OnTouchPressed Control : %ls", source.GetName().GetPointer());
        __pUiControlTimer->Cancel();
-
-       if (source.GetHashCode() == __pSlider->GetHashCode())
-       {
-               PlayerState playState = PLAYER_STATE_ERROR;
-               playState = __pVideoPlayerPresentationModel->GetState();
-
-               if (playState == PLAYER_STATE_PLAYING)
-               {
-                       result r = __pVideoPlayerPresentationModel->PausePlay();
-                       TryReturnVoid(r == E_SUCCESS, "__pVideoPlayerPresentationModel->PausePlay() failed:%s", GetErrorMessage(r));
-                       __playingBeforeSlide = true;
-               }
-       }
 }
 
 void
 VideoPlayerForm::OnTouchReleased(const Control& source, const Point& currentPosition,
                const TouchEventInfo& touchInfo)
 {
-       AppLogDebug("OnTouchReleased");
+       AppLogDebug("OnTouchReleased Control : %ls", source.GetName().GetPointer());
 
        PlayerState playState = PLAYER_STATE_ERROR;
 
@@ -1264,7 +1251,7 @@ void
 VideoPlayerForm::OnTouchLongPressed(const Control& source, const Point& currentPosition,
                const TouchEventInfo& touchInfo)
 {
-       AppLogDebug("OnTouchLongPressed");
+       AppLogDebug("OnTouchLongPressed Control : %ls", source.GetName().GetPointer());
 
        if (&source == __pFastForwardButton)
        {
@@ -1292,6 +1279,18 @@ VideoPlayerForm::OnTouchLongPressed(const Control& source, const Point& currentP
                        __pVideoPlayerPresentationModel->FastRewind(true);
                }
        }
+       else if (&source == __pSlider)
+       {
+               PlayerState playState = PLAYER_STATE_ERROR;
+               playState = __pVideoPlayerPresentationModel->GetState();
+
+               if (playState == PLAYER_STATE_PLAYING)
+               {
+                       result r = __pVideoPlayerPresentationModel->PausePlay();
+                       TryReturnVoid(r == E_SUCCESS, "__pVideoPlayerPresentationModel->PausePlay() failed:%s", GetErrorMessage(r));
+                       __playingBeforeSlide = true;
+               }
+       }
 }
 
 void