player->PushPacket( packet );
}
-
static void EmitPlaybackFinishedSignal( void* user_data )
{
TizenVideoPlayer* player = static_cast< TizenVideoPlayer* >( user_data );
player->Stop();
}
+// ToDo: VD player_set_play_position() doesn't work when callback pointer is NULL.
+// We should check whether this callback is needed in platform.
+static void PlayerSeekCompletedCb( void* data )
+{
+}
+
void LogPlayerError( int error )
{
if( error != PLAYER_ERROR_NONE )
mPlayerState == PLAYER_STATE_PAUSED
)
{
- error = player_set_play_position( mPlayer, millisecond, true, NULL, NULL );
+ error = player_set_play_position( mPlayer, millisecond, false, PlayerSeekCompletedCb, NULL );
LogPlayerError( error );
}
}
nextPosition = currentPosition + millisecond;
- error = player_set_play_position( mPlayer, nextPosition, true, NULL, NULL );
+ error = player_set_play_position( mPlayer, nextPosition, false, PlayerSeekCompletedCb, NULL );
LogPlayerError( error );
}
}
nextPosition = currentPosition - millisecond;
nextPosition = ( nextPosition < 0 )? 0 : nextPosition;
- error = player_set_play_position( mPlayer, nextPosition, true, NULL, NULL );
+ error = player_set_play_position( mPlayer, nextPosition, false, PlayerSeekCompletedCb, NULL );
LogPlayerError( error );
}
}