void MediaPlayerESPlusPlayer::OnReadyToSeek(
const esplusplayer_stream_type stream_type,
const uint64_t seek_time) {
+ LOG_ID(INFO, player_id_) << "(" << static_cast<void*>(this) << ") "
+ << __func__;
if (!task_runner_->BelongsToCurrentThread()) {
task_runner_->PostTask(
FROM_HERE,
return;
}
+ // Ignore OnReadyToSeek in release state
+ if (GetPlayerState() == ESPLUSPLAYER_STATE_NONE) {
+ LOG_ID(INFO, player_id_)
+ << __func__ << " Ignore OnReadyToSeek after function Release().";
+ return;
+ }
+
SetShouldFeed(GetDemuxerStreamType(stream_type), true);
SetIsEos(GetDemuxerStreamType(stream_type), false);
ReadBuffer(GetDemuxerStreamType(stream_type));