video_player: fix auto repeat issue (#83)

Fixed #21

Signed-off-by: Makoto Sato <[email protected]>
This commit is contained in:
Makoto Sato
2023-08-31 17:34:28 +09:00
committed by GitHub
parent f9e1817314
commit 3393b05388
@@ -160,9 +160,10 @@ int64_t GstVideoPlayer::GetCurrentPosition() {
is_completed_ = false; is_completed_ = false;
lock.unlock(); lock.unlock();
stream_handler_->OnNotifyCompleted();
if (auto_repeat_) { if (auto_repeat_) {
SetSeek(0); SetSeek(0);
} else {
stream_handler_->OnNotifyCompleted();
} }
} }
} }