Fix video play issue when rendering mode is changed and play soon. 19/149019/1
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Mon, 11 Sep 2017 09:16:15 +0000 (18:16 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Mon, 11 Sep 2017 09:16:15 +0000 (18:16 +0900)
Change-Id: Iada28d86abdbe9109abf2cc0f8f3a191e3e813c1

dali-toolkit/internal/controls/video-view/video-view-impl.cpp

index b09de6b..2fdb70b 100644 (file)
@@ -620,7 +620,11 @@ void VideoView::SetWindowSurfaceTarget()
     mVideoPlayer.Play();
     mVideoPlayer.Pause();
   }
-  mVideoPlayer.SetPlayPosition( curPos );
+
+  if( curPos > 0 )
+  {
+    mVideoPlayer.SetPlayPosition( curPos );
+  }
 
   // For underlay rendering mode, video display area have to be transparent.
   Geometry geometry = VisualFactoryCache::CreateQuadGeometry();
@@ -660,7 +664,10 @@ void VideoView::SetNativeImageTarget()
     mVideoPlayer.Play();
     mVideoPlayer.Pause();
   }
-  mVideoPlayer.SetPlayPosition( curPos );
+  if( curPos > 0 )
+  {
+    mVideoPlayer.SetPlayPosition( curPos );
+  }
 }
 
 void VideoView::UpdateDisplayArea()