diff options
Diffstat (limited to 'camlibs/ptp2/library.c')
-rw-r--r-- | camlibs/ptp2/library.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 2600f61bd..f25f8aed2 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -391,6 +391,8 @@ static struct { /* http://sourceforge.net/tracker/index.php?func=detail&aid=1584447&group_id=8874&atid=358874 */ {"HP:PhotoSmart R927 (PTP mode)", 0x03f0, 0x8702, 0}, {"HP:PhotoSmart E327 (PTP mode)", 0x03f0, 0x8b02, 0}, + /* https://sourceforge.net/tracker/?func=detail&atid=358874&aid=1589879&group_id=8874 */ + {"HP:PhotoSmart E427 (PTP mode)", 0x03f0, 0x8c02, 0}, /* Most Sony PTP cameras use the same product/vendor IDs. */ {"Sony:PTP", 0x054c, 0x004e, 0}, @@ -1316,6 +1318,9 @@ add_objectid_to_gphotofs(Camera *camera, CameraFilePath *path, GPContext *contex ret = gp_filesystem_set_file_noop(camera->fs, path->folder, file, context); if (ret != GP_OK) return ret; + /* We have now handed over the file, disclaim responsibility by unref. */ + gp_file_unref (file); + /* we also get the fs info for free, so just set it */ info.file.fields = GP_FILE_INFO_TYPE | GP_FILE_INFO_NAME | GP_FILE_INFO_WIDTH | GP_FILE_INFO_HEIGHT | |