GstEnginePipeline: Ignore about-to-finish when position is 0

This commit is contained in:
Madeline Schreiber
2025-07-04 16:47:29 -04:00
committed by Jonas Kvinge
parent 6372c5ee7d
commit d901258f11

View File

@@ -1369,6 +1369,12 @@ void GstEnginePipeline::AboutToFinishCallback(GstPlayBin *playbin, gpointer self
qLog(Debug) << "Stream from URL" << instance->gst_url_ << "about to finish.";
}
// When playing GME files it seems playbin3 emits about-to-finish early
// This stops us from skipping when the song has just started.
if (instance->position() == 0) {
return;
}
instance->about_to_finish_ = true;
if (instance->HasNextUrl() && !instance->next_uri_set_.value()) {