GstEnginePipeline: Fix setting volume after fader timeout

This commit is contained in:
Jonas Kvinge 2024-11-14 22:04:53 +01:00
parent 0cccc30c98
commit 712db598f7
1 changed files with 2 additions and 1 deletions

View File

@ -2106,7 +2106,8 @@ void GstEnginePipeline::FaderTimelineTimeout() {
qLog(Debug) << "Pipeline" << id() << "fading timed out";
if (volume_fading_) {
g_object_set(G_OBJECT(volume_fading_), "volume", QTimeLine::Direction::Forward ? 1.0 : 0.0, nullptr);
qLog(Debug) << "Pipeline" << id() << "setting volume" << (fader_->direction() == QTimeLine::Direction::Forward ? 1.0 : 0.0);
g_object_set(G_OBJECT(volume_fading_), "volume", fader_->direction() == QTimeLine::Direction::Forward ? 1.0 : 0.0, nullptr);
}
FaderTimelineFinished();