Fix a crash bug when you seek all the way to the end of the last track

This commit is contained in:
David Sansome 2010-04-22 17:02:06 +00:00
parent 99743d49aa
commit 906f3526cf
1 changed files with 4 additions and 2 deletions

View File

@ -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) {