Commit 2e93f617 authored by Jim Nelson's avatar Jim Nelson Committed by Lucas Beeler

#3397: If video file in a container our metadata reader doesn't recognize and...

#3397: If video file in a container our metadata reader doesn't recognize and the user is copying on import, the file will not be imported.  Fixed by Tobias Rapp.
parent a40fbe3f
......@@ -27,6 +27,7 @@ Paul Novak <pnovak@alumni.caltech.edu>
Evgeniy Polyakov <zbr@ioremap.net>
Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com>
Nikola Radovanovic <nrad@eunet.rs>
Tobias Rapp <yahuxo@gmx.de>
Louis-Francis Ratté-Boulianne <louis-francis@ratte-boulianne.com>
Martin Robinson <martin.james.robinson@gmail.com>
Elliott S <quantum.analyst@gmail.com>
......
......@@ -55,7 +55,11 @@ private File duplicate(File src, FileProgressCallback? progress_callback, bool b
MediaMetadata? metadata = null;
if (VideoReader.is_supported_video_file(src)) {
VideoReader reader = new VideoReader(src.get_path());
metadata = reader.read_metadata();
try {
metadata = reader.read_metadata();
} catch (Error err) {
// ignored, leave metadata as null
}
} else {
PhotoFileReader reader = PhotoFileFormat.get_by_file_extension(src).create_reader(
src.get_path());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment