mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 19:45:31 +01:00
Fix a crash bug when you seek all the way to the end of the last track
This commit is contained in:
parent
99743d49aa
commit
906f3526cf
@ -467,13 +467,15 @@ void GstEngine::Seek(uint ms) {
|
||||
|
||||
void GstEngine::SeekNow() {
|
||||
if (!waiting_to_seek_) return;
|
||||
waiting_to_seek_ = false;
|
||||
|
||||
if (!current_pipeline_)
|
||||
return;
|
||||
|
||||
if (current_pipeline_->Seek(seek_pos_ * GST_MSECOND))
|
||||
ClearScopeBuffers();
|
||||
else
|
||||
qDebug() << "Seek failed";
|
||||
|
||||
waiting_to_seek_ = false;
|
||||
}
|
||||
|
||||
void GstEngine::SetEqualizerEnabled(bool enabled) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user