- Check NULL dereference at window-impl-ecore-wl.cpp:880, 1467
- Initialized member variables in TizenVideoPlayer
- Fix the correct expression at image-operations.cpp:478
- Fix not to return NULL pointer at video-player-impl.cpp:136
Change-Id: I6ba410ab3406cca2a9b66c66345654c374278628
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
return mPlugin->GetUrl();
}
return mPlugin->GetUrl();
}
- return std::string( NULL );
}
void VideoPlayer::SetLooping(bool looping)
}
void VideoPlayer::SetLooping(bool looping)
void Window::RotationDone( int orientation, int width, int height )
{
ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( mSurface ) );
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 ) );
mAdaptor->SurfaceResizePrepare( Dali::Adaptor::SurfaceSize( width, height ) );
void Window::SetTransparency( bool transparent )
{
ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( mSurface ) );
void Window::SetTransparency( bool transparent )
{
ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( mSurface ) );
- wlSurface->SetTransparency( transparent );
+ if( wlSurface )
+ {
+ wlSurface->SetTransparency( transparent );
+ }
// If both dimensions have values requested, use them both:
if( requestedWidth != 0 && requestedHeight != 0 )
{
// 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 );
}
{
return ImageDimensions( requestedWidth, requestedHeight );
}
} // unnamed namespace
TizenVideoPlayer::TizenVideoPlayer()
} // unnamed namespace
TizenVideoPlayer::TizenVideoPlayer()
+: mUrl(),
+ mPlayer( NULL ),
mPlayerState( PLAYER_STATE_NONE ),
mTbmSurface( NULL ),
mPacket( 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 ),
mTargetType( NativeImage ),
+ mPacketMutex(),
+ mPacketVector(),
+ mEcoreWlWindow( NULL ),
mAlphaBitChanged( false )
{
}
mAlphaBitChanged( false )
{
}