Philipp Hörist pushed to branch master at gajim / gajim
Commits:
4f555c9e by mesonium at 2025-09-30T11:02:29+02:00
fix: Video Thumbnails: Don't seek close to EOS
- - - - -
1 changed file:
- gajim/common/multiprocess/video_thumbnail.py
Changes:
=====================================
gajim/common/multiprocess/video_thumbnail.py
=====================================
@@ -129,9 +129,7 @@ def cleanup() -> None:
# Take timestamp after 2 seconds or earlier, if duration is shorter
duration_ms = duration_ns / 1e6
metadata["duration"] = duration_ms
- timestamp_ms = 2000
- if timestamp_ms >= duration_ms:
- timestamp_ms = duration_ms * 0.5
+ timestamp_ms = min(2000, int(0.5 * duration_ms))
pipeline.seek_simple(
Gst.Format.TIME,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4f555c9ea13051415f43c4dc1293bf6ddb11fca4
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4f555c9ea13051415f43c4dc1293bf6ddb11fca4
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]