summaryrefslogtreecommitdiff
path: root/src/video-support
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-08-12 10:08:29 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-08-12 10:08:29 +0200
commitf87eb3c1043d3f4f8e22ba505cd1a827241e160c (patch)
treee46351c8ec622c9d13232cf00c8a1048e55184af /src/video-support
parent7f667adb7b8d3a803a6cd6120dcea4ba4ff89075 (diff)
parent2333d2b06d52754a55a747fa438844286f98d53a (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/video-support')
-rw-r--r--src/video-support/VideoReader.vala2
-rw-r--r--src/video-support/VideoSourceCollection.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video-support/VideoReader.vala b/src/video-support/VideoReader.vala
index 11f11e1..adb6680 100644
--- a/src/video-support/VideoReader.vala
+++ b/src/video-support/VideoReader.vala
@@ -98,7 +98,7 @@ public class VideoReader {
return ImportResult.UNSUPPORTED_FORMAT;
}
- var timestamp = info.get_modification_date_time();
+ var timestamp = coarsify_date_time(info.get_modification_date_time());
// make sure params has a valid md5
assert(params.md5 != null);
diff --git a/src/video-support/VideoSourceCollection.vala b/src/video-support/VideoSourceCollection.vala
index 89daad3..8dd75d9 100644
--- a/src/video-support/VideoSourceCollection.vala
+++ b/src/video-support/VideoSourceCollection.vala
@@ -126,7 +126,7 @@ public class VideoSourceCollection : MediaSourceCollection {
if (video.get_filesize() != info.get_size())
return;
- if (video.get_timestamp().equal(info.get_modification_date_time()))
+ if (video.get_timestamp().equal(coarsify_date_time(info.get_modification_date_time())))
matching_master.add(video);
}