diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2022-09-26 10:06:39 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2022-09-26 10:06:48 +0200 |
commit | b805dc64199a2762553220a7d5dfa4f19eeedf8a (patch) | |
tree | 87209f13689c34564dbc30d48e45df5b60b3001b | |
parent | e465cb4ac861ad9f0b9886a18576d6e0d43c950f (diff) | |
download | libgphoto2-b805dc64199a2762553220a7d5dfa4f19eeedf8a.tar.gz |
repotr PTP_RC_StoreNotAvailable during capture if we have no image
-rw-r--r-- | libgphoto2_port/vusb/vcamera.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgphoto2_port/vusb/vcamera.c b/libgphoto2_port/vusb/vcamera.c index 106bf903b..5f435f624 100644 --- a/libgphoto2_port/vusb/vcamera.c +++ b/libgphoto2_port/vusb/vcamera.c @@ -1106,7 +1106,7 @@ ptp_initiatecapture_write(vcamera *cam, ptpcontainer *ptp) { } if (!cur) { gp_log (GP_LOG_ERROR,__FUNCTION__, "I do not have a JPG file in the store, can not proceed"); - ptp_response (cam, PTP_RC_GeneralError, 0); + ptp_response (cam, PTP_RC_StoreNotAvailable, 0); return 1; } dir = first_dirent; @@ -1124,7 +1124,7 @@ ptp_initiatecapture_write(vcamera *cam, ptpcontainer *ptp) { } if (!cur) { gp_log (GP_LOG_ERROR,__FUNCTION__, "I do not have a JPG file in the store, can not proceed. reporting PTP_RC_StoreReadOnly."); - ptp_response (cam, PTP_RC_StoreReadOnly, 0); + ptp_response (cam, PTP_RC_StoreNotAvailable, 0); return 1; } dir = first_dirent; |