Bug 414813 - Wrong leading thumbnail when clip and project profiles differ
Summary: Wrong leading thumbnail when clip and project profiles differ
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: git-master
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-04 04:24 UTC by Ilia Lilov
Modified: 2019-12-04 12:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilia Lilov 2019-12-04 04:24:10 UTC
Version of Kdenlive where bug is present: 19.11.80 (it's not present in versions list for reporting, so I chosen "git-master" as the closest). The bug appeared not earlier than 19.04.2 at least.


To reproduce (100% repeatability):
- Run Kdenlive (mandatory; don't use already running process).
- "Project" -> "Add Clip or Folder", add any video file. Answer to "Switch to clip profile...?" dialog does not matter.
- Drag and drop the clip to any video track on timeline.
- Move the clip at leftmost position of the track on timeline (proven to be mandatory step).
- "File" -> "New", choose any profile, saving project or not does not matter.
- "Project" -> "Add Clip or Folder", add any other video file, file profile must not match project profile. Ignore "Switch to clip profile...?" dialog or answer "Cancel".
- Drag and drop the clip to any video track. Leading video thumbnail of the clip will be from the first clip, not from the second as expected.


In my case, differences between project profile and clip profile are the following:

Project:
Frame size: 1920 x 1080 (16:9)
Frame rate: 25 fps
Pixel Aspect Ratio: 1
Color Space: ITU-R 709
Interlaced: no

Clip:
Frame size: 1920 x 1080 (1920:1080)
Frame rate: 25 fps
Pixel Aspect Ratio: 1
Color Space: ITU-R 601
Interlaced: no
Comment 1 Jean-Baptiste Mardelle 2019-12-04 12:04:15 UTC
Git commit 5d12b66c247d60967db1d10b958919ec9eeb9f49 by Jean-Baptiste Mardelle.
Committed on 04/12/2019 at 12:04.
Pushed by mardelle into branch 'release/19.12'.

Fix video thumbnails from previous project showing up.
Various crash fixes on exit or project close.

M  +2    -0    src/bin/bin.cpp
M  +5    -1    src/jobs/audiothumbjob.cpp
M  +2    -2    src/jobs/cachejob.cpp
M  +7    -2    src/jobs/jobmanager.cpp
M  +1    -0    src/jobs/meltjob.cpp
M  +2    -0    src/project/projectmanager.cpp
M  +1    -4    src/timeline2/view/qml/Clip.qml
M  +2    -2    src/timeline2/view/qml/ClipThumbs.qml
M  +0    -5    src/timeline2/view/qmltypes/thumbnailprovider.cpp
M  +0    -1    src/timeline2/view/qmltypes/thumbnailprovider.h
M  +4    -1    src/timeline2/view/timelinewidget.cpp
M  +19   -1    src/utils/thumbnailcache.cpp
M  +3    -0    src/utils/thumbnailcache.hpp

https://invent.kde.org/kde/kdenlive/commit/5d12b66c247d60967db1d10b958919ec9eeb9f49