return mPlugin->GetUrl();
}
- return std::string( NULL );
+ return std::string();
}
void VideoPlayer::SetLooping(bool looping)
void Window::RotationDone( int orientation, int width, int height )
{
ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( mSurface ) );
- wlSurface->RequestRotation( orientation, width, height );
+ if( wlSurface )
+ {
+ 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 ) );
- wlSurface->SetTransparency( transparent );
+ if( wlSurface )
+ {
+ wlSurface->SetTransparency( transparent );
+ }
}
} // Adaptor
// If both dimensions have values requested, use them both:
if( requestedWidth != 0 && requestedHeight != 0 )
{
- if( requestedWidth <= maxSize && requestedWidth <= maxSize )
+ if( requestedWidth <= maxSize && requestedHeight <= maxSize )
{
return ImageDimensions( requestedWidth, requestedHeight );
}
} // unnamed namespace
TizenVideoPlayer::TizenVideoPlayer()
-: mPlayer( NULL ),
+: mUrl(),
+ 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 )
{
}