int error = camera_stop_preview(mCameraPlayer);
CameraPlayerError(error, __FUNCTION__, __LINE__);
- if (mNativeImageSourcePtr != NULL && mTimer)
+ if (mNativeImageSourcePtr && mTimer)
{
mTimer.Stop();
DestroyPackets();
void TizenCameraPlayer::Destroy()
{
- if (mNativeImageSourcePtr != NULL && mTimer)
+ if (mNativeImageSourcePtr && mTimer)
{
mTimer.Stop();
DestroyPackets();
{
GetPlayerState(&mCameraPlayerState);
- if (mNativeImageSourcePtr != NULL)
+ if (mNativeImageSourcePtr)
{
DALI_LOG_ERROR("SetDisplayArea is only for window surface target.\n");
return;
if( mPlayerState == PLAYER_STATE_READY || mPlayerState == PLAYER_STATE_PAUSED )
{
- if( mNativeImageSourcePtr != NULL && mTimer )
+ if( mNativeImageSourcePtr && mTimer )
{
mTimer.Start();
}
int error = player_pause( mPlayer );
LogPlayerError( error );
- if( mNativeImageSourcePtr != NULL && mTimer )
+ if( mNativeImageSourcePtr && mTimer )
{
mTimer.Stop();
DestroyPackets();
int error = player_stop( mPlayer );
LogPlayerError( error );
- if( mNativeImageSourcePtr != NULL && mTimer )
+ if( mNativeImageSourcePtr && mTimer )
{
mTimer.Stop();
DestroyPackets();
void TizenVideoPlayer::SetDisplayRotation( Dali::VideoPlayerPlugin::DisplayRotation rotation )
{
- if( mNativeImageSourcePtr != NULL )
+ if( mNativeImageSourcePtr )
{
DALI_LOG_ERROR( "SetDisplayRotation is only for window rendering target.\n" );
return;
Dali::VideoPlayerPlugin::DisplayRotation TizenVideoPlayer::GetDisplayRotation()
{
- if( mNativeImageSourcePtr != NULL )
+ if( mNativeImageSourcePtr )
{
DALI_LOG_ERROR( "GetDisplayRotation is only for window rendering target.\n" );
return Dali::VideoPlayerPlugin::ROTATION_NONE;
{
GetPlayerState( &mPlayerState );
- if( mNativeImageSourcePtr != NULL )
+ if( mNativeImageSourcePtr )
{
DALI_LOG_ERROR( "SetDisplayArea is only for window surface target.\n" );
return;
if(mPlayerState == PLAYER_STATE_READY || mPlayerState == PLAYER_STATE_PAUSED)
{
- if(mNativeImageSourcePtr != NULL && mTimer)
+ if(mNativeImageSourcePtr && mTimer)
{
mTimer.Start();
}
DALI_LOG_ERROR("Pause, player_pause() is failed\n");
}
- if(mNativeImageSourcePtr != NULL && mTimer)
+ if(mNativeImageSourcePtr && mTimer)
{
mTimer.Stop();
DestroyPackets();
DALI_LOG_ERROR("Stop, player_stop() is failed\n");
}
- if(mNativeImageSourcePtr != NULL && mTimer)
+ if(mNativeImageSourcePtr && mTimer)
{
mTimer.Stop();
DestroyPackets();
void TizenVideoPlayer::SetDisplayRotation(Dali::VideoPlayerPlugin::DisplayRotation rotation)
{
- if(mNativeImageSourcePtr != NULL)
+ if(mNativeImageSourcePtr)
{
DALI_LOG_ERROR("SetDisplayRotation is only for window rendering target.\n");
return;
Dali::VideoPlayerPlugin::DisplayRotation TizenVideoPlayer::GetDisplayRotation()
{
- if(mNativeImageSourcePtr != NULL)
+ if(mNativeImageSourcePtr)
{
DALI_LOG_ERROR("GetDisplayRotation is only for window rendering target.\n");
return Dali::VideoPlayerPlugin::ROTATION_NONE;
int ret = 0;
GetPlayerState(&mPlayerState);
- if(mNativeImageSourcePtr != NULL)
+ if(mNativeImageSourcePtr)
{
DALI_LOG_ERROR("SetDisplayArea is only for window surface target.\n");
return;