Bug 482949

Summary: Nested sequence fails to update, after audio change
Product: [Applications] kdenlive Reporter: red_Arti <jijiliu35>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git-master   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: bug_3seq_audio_not_updated

Description red_Arti 2024-03-09 05:22:12 UTC
SUMMARY
3 sequences nested.
After changing audio in 1st sequence, Kdenlive fails to update audio in 3rd sequence.

STEPS TO REPRODUCE
1. Create project (Project folder option: Parant folder of project file)
2. Add a video clip (with audio) to Seq1 
3. Create Seq2. Add Seq1 into Seq 2
4. Create Seq3. Add Seq2 into Seq 3
5. Save (click 'yes' for moving temporary files). Close. Reopen the project
6. Swtich to Seq1 tab. Ungroup the clip, and then delete audio
7. Switch to Seq3 tab. Play

OBSERVED RESULT
In Seq3, it plays audio, which has been deleted in Seq1 and shouldn't be played.

EXPECTED RESULT
No audio in Seq3

SOFTWARE/OS VERSIONS
Latest git master ci build kdenlive-master-7593-linux-gcc-x86_64.AppImage

ADDITIONAL INFORMATION
You have to switch to Seq2 and do some change, then it updates in Seq3, then everything seems fine
Comment 1 red_Arti 2024-03-09 05:24:08 UTC
Created attachment 166778 [details]
bug_3seq_audio_not_updated
Comment 2 Jean-Baptiste Mardelle 2024-03-11 07:15:37 UTC
Git commit 36a0323c1fb2035c4a04f3c1da4e1c5078bd632b by Jean-Baptiste Mardelle.
Committed on 11/03/2024 at 07:15.
Pushed by mardelle into branch 'release/24.02'.

On sequence change, recursively update each sequence that embedded it

M  +9    -2    src/bin/bin.cpp
M  +3    -1    src/bin/bin.h
M  +12   -0    src/bin/projectclip.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/36a0323c1fb2035c4a04f3c1da4e1c5078bd632b