Revert "[4.0] Fix SVACE issues" 28/153328/1
authorJinho, Lee <jeano.lee@samsung.com>
Thu, 28 Sep 2017 04:35:18 +0000 (13:35 +0900)
committerJinho, Lee <jeano.lee@samsung.com>
Thu, 28 Sep 2017 04:35:19 +0000 (13:35 +0900)
This reverts commit 20f3e124e28f6d61ad514ef1b40a335944f3d755.

Change-Id: I386c16a0aaf141835f82f6a24ab23a61b0c995d3

adaptors/common/video-player-impl.cpp
adaptors/ecore/wayland/window-impl-ecore-wl.cpp
platform-abstractions/portable/image-operations.cpp
plugins/video-player/tizen-video-player.cpp

index 50e3e6b..feab793 100644 (file)
@@ -133,7 +133,7 @@ std::string VideoPlayer::GetUrl()
     return mPlugin->GetUrl();
   }
 
-  return std::string();
+  return std::string( NULL );
 }
 
 void VideoPlayer::SetLooping(bool looping)
index 971be10..6f785d0 100644 (file)
@@ -877,10 +877,7 @@ bool Window::IsVisible() const
 void Window::RotationDone( int orientation, int width, int height )
 {
   ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( mSurface ) );
-  if( wlSurface )
-  {
-    wlSurface->RequestRotation( orientation, width, height );
-  }
+  wlSurface->RequestRotation( orientation, width, height );
 
   mAdaptor->SurfaceResizePrepare( Dali::Adaptor::SurfaceSize( width, height ) );
 
@@ -1464,10 +1461,7 @@ Dali::DevelWindow::WindowPosition Window::GetPosition()
 void Window::SetTransparency( bool transparent )
 {
   ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( mSurface ) );
-  if( wlSurface )
-  {
-    wlSurface->SetTransparency( transparent );
-  }
+  wlSurface->SetTransparency( transparent );
 }
 
 } // Adaptor
index e9a94cc..2c5da3b 100644 (file)
@@ -475,7 +475,7 @@ ImageDimensions CalculateDesiredDimensions( unsigned int bitmapWidth, unsigned i
   // If both dimensions have values requested, use them both:
   if( requestedWidth != 0 && requestedHeight != 0 )
   {
-    if( requestedWidth <= maxSize && requestedHeight <= maxSize )
+    if( requestedWidth <= maxSize && requestedWidth <= maxSize )
     {
       return ImageDimensions( requestedWidth, requestedHeight );
     }
index e11736e..f7baa50 100644 (file)
@@ -209,18 +209,11 @@ void LogPlayerError( int error )
 } // unnamed namespace
 
 TizenVideoPlayer::TizenVideoPlayer()
-: mUrl(),
-  mPlayer( NULL ),
+: mPlayer( NULL ),
   mPlayerState( PLAYER_STATE_NONE ),
   mTbmSurface( NULL ),
   mPacket( NULL ),
-  mNativeImageSourcePtr( NULL ),
-  mTimer( NULL ),
-  mBackgroundColor( Vector4( 1.0f, 1.0f, 1.0f, 0.0f ) ),
   mTargetType( NativeImage ),
-  mPacketMutex(),
-  mPacketVector(),
-  mEcoreWlWindow( NULL ),
   mAlphaBitChanged( false )
 {
 }