GstEngine: Don't set state to play if already playing

This commit is contained in:
Jonas Kvinge 2024-09-17 22:23:17 +02:00
parent 2bed827eb6
commit 6d68f7f008
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ bool GstEngine::Play(const bool pause, const quint64 offset_nanosec) {
EnsureInitialized();
if (!current_pipeline_ || current_pipeline_->is_buffering()) return false;
if (!current_pipeline_ || current_pipeline_->is_buffering() || current_pipeline_->state() == GstState::GST_STATE_PLAYING) return false;
if (OldExclusivePipelineActive()) {
qLog(Debug) << "Delaying play because a exclusive pipeline is already active...";