summaryrefslogtreecommitdiffstats
path: root/TOOLS/macos-swift-lib-directory.py
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2021-10-15 17:54:09 +0200
committerDudemanguy <random342@airmail.cc>2023-02-27 17:03:38 +0000
commit0772d0263ce0b09257fd6df4e9891bb4cd61b35c (patch)
tree387ad5ab90bd4f22651fd0d28fe557bb4be58ac1 /TOOLS/macos-swift-lib-directory.py
parentae6a22ddec3f41cf144d694ad6069d55ce769f1a (diff)
downloadmpv-0772d0263ce0b09257fd6df4e9891bb4cd61b35c.tar.bz2
mpv-0772d0263ce0b09257fd6df4e9891bb4cd61b35c.tar.xz
TOOLS/autocrop.lua: log a more accurate warning
This reorders some code and checks the image track-list sub-property instead of the albumart one, so that when playing audio without enough playtime-remaining and images, the "autocrop only works for videos." warning is logged instead of the "Not enough time to detect crop." one. It also avoids repeating this warning twice in the code. As of e16d0dd15d current-tracks returns a video track even when lavfi-complex is used, so the track-list loop in is_cropable can be replaced with just checking current-tracks/video while still cropping videos with lavfi-complex.
Diffstat (limited to 'TOOLS/macos-swift-lib-directory.py')
0 files changed, 0 insertions, 0 deletions