return mPlugin->GetUrl();
}
- return std::string();
+ return std::string( NULL );
}
void VideoPlayer::SetLooping(bool looping)
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 ) );
void Window::SetTransparency( bool transparent )
{
ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( mSurface ) );
- if( wlSurface )
- {
- wlSurface->SetTransparency( transparent );
- }
+ wlSurface->SetTransparency( transparent );
}
} // Adaptor
// 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 );
}
} // 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 )
{
}