[kdenlive] [Bug 523788] Enabling/Disabling Proxy deletes reversed clips from timeline

"Jean-Baptiste Mardelle" <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=523788

Jean-Baptiste Mardelle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/mult
                   |                            |imedia/kdenlive/-/commit/f4
                   |                            |39114f6c2670c3cf81c0933fee4
                   |                            |b81234f9054
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Jean-Baptiste Mardelle <[email protected]> ---
Git commit f439114f6c2670c3cf81c0933fee4b81234f9054 by Jean-Baptiste Mardelle,
on behalf of Jaimukund Bhan.
Committed on 07/08/2026 at 11:48.
Pushed by mardelle into branch 'master'.

Fix timeline clip deletion when toggling proxy on reversed clips

Reversed timeline clips disappear when enabling or disabling Proxy mode on
their parent clip in the Project Bin. When toggling proxy status on a bin clip,
`TimelineModel::requestClipReload()` refreshes timeline clip instances.
Previously, `updatedDuration` was calculated as:

```
int updatedDuration = qCeil(binClip->frameDuration() / speed);
```

For reversed clips (speed \< 0), this produced a negative `updatedDuration`.
The subsequent out-of-bounds check (oldIn \>= updatedDuration) evaluated to
true, causing Kdenlive to delete the clip from the timeline. Use `qAbs(speed)`
when calculating `updatedDuration` in `TimelineModel::requestClipReload()` to
ensure the duration magnitude remains positive and valid regardless of playback
direction.

M  +1    -1    src/timeline2/model/timelinemodel.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/f439114f6c2670c3cf81c0933fee4b81234f9054

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.