BugFix Mediaplayer loop and info mediaplayer

This commit is contained in:
Bruno Herbelin
2022-02-26 22:32:37 +01:00
parent c355bd7569
commit 95a69937bd
2 changed files with 4 additions and 4 deletions

View File

@@ -224,7 +224,7 @@ void InfoVisitor::visit (CloneSource& s)
oss << "Clone of '" << s.origin()->name() << "' ";
oss << CloneSource::cloning_provenance_label[s.cloningProvenance()] << std::endl;
oss << (s.frame()->use_alpha() ? "RGBA, " : "RGB, ");
oss << (int)(s.delay()*100.0) << " ms delay " << std::endl;
oss << (int)(s.delay()*1000.0) << " ms delay " << std::endl;
oss << s.frame()->width() << " x " << s.frame()->height();
}
}

View File

@@ -1013,9 +1013,8 @@ void MediaPlayer::update()
}
// manage loop mode
if (need_loop) {
if (need_loop)
execute_loop_command();
}
force_update_ = false;
}
@@ -1030,7 +1029,8 @@ void MediaPlayer::execute_loop_command()
execute_seek_command();
}
else { //LOOP_NONE
play(false);
if (desired_state_ == GST_STATE_PLAYING) // avoid repeated call
play(false);
}
}