video_player: fix auto repeat issue (#83)
Fixed #21 Signed-off-by: Makoto Sato <makoto.sato@atmark-techno.com>
This commit is contained in:
@@ -160,9 +160,10 @@ int64_t GstVideoPlayer::GetCurrentPosition() {
|
||||
is_completed_ = false;
|
||||
lock.unlock();
|
||||
|
||||
stream_handler_->OnNotifyCompleted();
|
||||
if (auto_repeat_) {
|
||||
SetSeek(0);
|
||||
} else {
|
||||
stream_handler_->OnNotifyCompleted();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user