if( player == NULL )
{
- DALI_LOG_ERROR( "Decoded callback got Null pointer as user_data." );
+ DALI_LOG_ERROR( "Decoded callback got Null pointer as user_data.\n" );
return;
}
static void EmitPlaybackFinishedSignal( void* user_data )
{
TizenVideoPlayer* player = static_cast< TizenVideoPlayer* >( user_data );
- DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.0" );
+ DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.\n" );
if( player == NULL )
{
- DALI_LOG_ERROR( "Decoded callback got Null pointer as user_data." );
+ DALI_LOG_ERROR( "Decoded callback got Null pointer as user_data.\n" );
return;
}
- DALI_LOG_ERROR( "EmitPlaybackFinishedSignal." );
+ DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.\n" );
if( !player->mFinishedSignal.Empty() )
{
- DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.3" );
+ DALI_LOG_ERROR( "EmitPlaybackFinishedSignal.3\n" );
player->mFinishedSignal.Emit();
}
} // unnamed namespace
TizenVideoPlayer::TizenVideoPlayer()
-: mPlayerState( PLAYER_STATE_NONE ),
+: mPlayer( NULL ),
+ mPlayerState( PLAYER_STATE_NONE ),
+ mTbmSurface( NULL ),
mPacket( NULL ),
mBackgroundColor( Dali::Stage::DEFAULT_BACKGROUND_COLOR ),
mTargetType( NativeImage )
void TizenVideoPlayer::GetPlayerState( player_state_e* state )
{
- if( player_get_state( mPlayer, state ) != PLAYER_ERROR_NONE )
+ if( mPlayer != NULL && player_get_state( mPlayer, state ) != PLAYER_ERROR_NONE )
{
DALI_LOG_ERROR( "player_get_state error: Invalid parameter\n" );
*state = PLAYER_STATE_NONE;
}
else
{
- DALI_LOG_ERROR( "Video rendering target is unknown" );
+ DALI_LOG_ERROR( "Video rendering target is unknown\n" );
}
}
mPlayerState == PLAYER_STATE_PAUSED
)
{
- bool muted = false;
int error = player_is_muted( mPlayer, &muted );
LogPlayerError( error );
}