There is no need to call mOverlayRenderer's AddRenderer() in play(). 19/245019/1
authorJoogab Yun <joogab.yun@samsung.com>
Tue, 29 Sep 2020 06:41:10 +0000 (15:41 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Tue, 29 Sep 2020 06:41:10 +0000 (15:41 +0900)
Change-Id: I37c2709e45d9e5a97f5801258e6ebee377e1337a

dali-toolkit/internal/controls/video-view/video-view-impl.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 523fcf0..d7d812c
@@ -228,11 +228,6 @@ bool VideoView::IsLooping()
 
 void VideoView::Play()
 {
-  if( mOverlayRenderer )
-  {
-    Self().AddRenderer( mOverlayRenderer );
-  }
-
   mVideoPlayer.Play();
   mIsPlay = true;
 }
@@ -295,11 +290,6 @@ Dali::Toolkit::VideoView::VideoViewSignalType& VideoView::FinishedSignal()
 
 void VideoView::EmitSignalFinish()
 {
-  if( mOverlayRenderer )
-  {
-    Self().RemoveRenderer( mOverlayRenderer );
-  }
-
   if ( !mFinishedSignal.Empty() )
   {
     Dali::Toolkit::VideoView handle( GetOwner() );
@@ -660,6 +650,7 @@ void VideoView::SetWindowSurfaceTarget()
     mOverlayRenderer = Renderer::New( geometry, shader );
     mOverlayRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::OFF );
   }
+  Self().AddRenderer( mOverlayRenderer );
 
   if( mIsPlay )
   {