summaryrefslogtreecommitdiff
path: root/src/camera/GPhoto.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-11-20 18:25:49 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-11-20 18:25:49 +0100
commit394326a81d1248bbc5b1a35a8ae623c65ef6a9ea (patch)
tree315f7cf2a7934b0ecf45ac2caa3c87949a90dfc4 /src/camera/GPhoto.vala
parent918f560d56129ed03f19d843ea2efd7cb4b23821 (diff)
parent87ba373882f475f02a524a120b59ea9fcccf14e5 (diff)
Update upstream source from tag 'upstream/0.32.3'
Update to upstream version '0.32.3' with Debian dir e5e2a77e8650a79f6e85cccb15c070434b0fd667
Diffstat (limited to 'src/camera/GPhoto.vala')
-rw-r--r--src/camera/GPhoto.vala14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/camera/GPhoto.vala b/src/camera/GPhoto.vala
index 702f307..5c0b9a8 100644
--- a/src/camera/GPhoto.vala
+++ b/src/camera/GPhoto.vala
@@ -92,21 +92,9 @@ namespace GPhoto {
}
}
- // For CameraFileInfoFile, CameraFileInfoPreview, and CameraStorageInformation. See:
- // https://bugzilla.gnome.org/show_bug.cgi?id=716252
- // https://bugzilla.redhat.com/show_bug.cgi?id=585676
- // https://sourceforge.net/tracker/?func=detail&aid=3000198&group_id=8874&atid=108874
- public const int MAX_FILENAME_LENGTH = 63;
- public const int MAX_BASEDIR_LENGTH = 255;
-
public bool get_info(Context context, Camera camera, string folder, string filename,
out CameraFileInfo info) throws Error {
- if (folder.length > MAX_BASEDIR_LENGTH || filename.length > MAX_FILENAME_LENGTH) {
- info = {};
-
- return false;
- }
-
+
Result res = camera.get_file_info(folder, filename, out info, context);
if (res != Result.OK)
throw new GPhotoError.LIBRARY("[%d] Error retrieving file information for %s/%s: %s",