[Tizen] Change the position of mTimer.Stop() 91/243191/1 accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_unified tizen tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.0/unified/20201030.113213 accepted/tizen/6.0/unified/hotfix/20201103.001055 accepted/tizen/6.5/unified/20211028.114543 accepted/tizen/7.0/unified/20221110.062545 accepted/tizen/7.0/unified/hotfix/20221116.105954 accepted/tizen/unified/20200916.121619 submit/tizen/20200916.064853 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 submit/tizen_6.5/20211028.163101 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorJoogab Yun <joogab.yun@samsung.com>
Fri, 4 Sep 2020 00:42:40 +0000 (09:42 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Fri, 4 Sep 2020 00:57:42 +0000 (09:57 +0900)
Change-Id: I1cd3d556765d58c120fe9c7fc894aab16e8f96f0

dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp
dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp

index 7e65731..aa464a8 100755 (executable)
@@ -401,12 +401,13 @@ void TizenVideoPlayer::Stop()
   {
     int error = player_stop( mPlayer );
     LogPlayerError( error );
-  }
 
-  if( mNativeImageSourcePtr != NULL && mTimer )
-  {
-    mTimer.Stop();
-    DestroyPackets();
+    if( mNativeImageSourcePtr != NULL && mTimer )
+    {
+      mTimer.Stop();
+      DestroyPackets();
+    }
+
   }
 }
 
index ffcba37..f180d59 100755 (executable)
@@ -400,13 +400,14 @@ void TizenVideoPlayer::Stop()
   {
     int error = player_stop( mPlayer );
     LogPlayerError( error );
-  }
 
-  if( mNativeImageSourcePtr != NULL && mTimer )
-  {
-    mTimer.Stop();
-    DestroyPackets();
+    if( mNativeImageSourcePtr != NULL && mTimer )
+    {
+      mTimer.Stop();
+      DestroyPackets();
+    }
   }
+
 }
 
 void TizenVideoPlayer::SetMute( bool muted )