It seems the other resolutions work for the gsmart mini after all. Remove the
checks for them. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5557 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -152,10 +152,6 @@ gsmart_get_image (CameraPrivateLibrary * lib, u_int8_t ** buf,
|
||||
|
||||
p = g_file->fat;
|
||||
|
||||
if ((lib->bridge == GSMART_BRIDGE_SPCA500)
|
||||
&& ((p[20] & 0xFF) != 0))
|
||||
return GP_ERROR_NOT_SUPPORTED;
|
||||
|
||||
/* get the position in memory where the image is */
|
||||
start = (p[1] & 0xff) + (p[2] & 0xff) * 0x100;
|
||||
start *= 128;
|
||||
@@ -467,10 +463,6 @@ gsmart_get_image_thumbnail (CameraPrivateLibrary * lib, u_int8_t ** buf,
|
||||
|
||||
p = g_file->fat;
|
||||
|
||||
if ((lib->bridge == GSMART_BRIDGE_SPCA500)
|
||||
&& ((p[20] & 0xFF) != 0))
|
||||
return GP_ERROR_NOT_SUPPORTED;
|
||||
|
||||
start = (p[3] & 0xff) + (p[4] & 0xff) * 0x100;
|
||||
start *= 128;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user