video_player: fix auto repeat issue (#83)
Fixed #21 Signed-off-by: Makoto Sato <[email protected]>
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user