• Alexandru Băluț's avatar
    previewers: Fix thumbnail generation when cache db empty · 44b03012
    Alexandru Băluț authored
    When the thumbnail cache db is empty, the returned image_size is (None,
    None) so thumb_width is set to None, but when there is no cache db, we
    initialize it with 0. That's why thumbnail generation somehow worked for
    new media files.
    
    Fixed by using consistently 0 instead of None, and always starting the
    pipeline when there is no db or the db is empty, as starting the
    pipeline sets thumb_width.
    44b03012
Name
Last commit
Last update
bin Loading commit data...
build/flatpak Loading commit data...
data Loading commit data...
docs Loading commit data...
help Loading commit data...
pitivi Loading commit data...
po Loading commit data...
subprojects Loading commit data...
tests Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
.pre-commit-config.yaml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
MAINTAINERS Loading commit data...
NEWS Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
getenvvar.py Loading commit data...
intltool-extract.in Loading commit data...
intltool-merge.in Loading commit data...
intltool-update.in Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
pitivi.doap Loading commit data...
pitivi.xml Loading commit data...
pre-commit.hook Loading commit data...