summaryrefslogtreecommitdiff
path: root/libgphoto2_port/vusb
diff options
context:
space:
mode:
Diffstat (limited to 'libgphoto2_port/vusb')
-rw-r--r--libgphoto2_port/vusb/vcamera.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libgphoto2_port/vusb/vcamera.c b/libgphoto2_port/vusb/vcamera.c
index f6be78982..12c8259d9 100644
--- a/libgphoto2_port/vusb/vcamera.c
+++ b/libgphoto2_port/vusb/vcamera.c
@@ -528,8 +528,16 @@ ptp_deviceinfo_write(vcamera *cam, ptpcontainer *ptp) {
data = malloc(2000);
x += put_16bit_le(data+x,100); /* StandardVersion */
- x += put_32bit_le(data+x,0); /* VendorExtensionID */
- x += put_16bit_le(data+x,0); /* VendorExtensionVersion */
+ switch (cam->type) {
+ case NIKON_D750:
+ x += put_32bit_le(data+x,0xa); /* VendorExtensionID */
+ x += put_16bit_le(data+x,100); /* VendorExtensionVersion */
+ break;
+ default:
+ x += put_32bit_le(data+x,0); /* VendorExtensionID */
+ x += put_16bit_le(data+x,0); /* VendorExtensionVersion */
+ break;
+ }
x += put_string(data+x,"GPhoto-VirtualCamera: 1.0;"); /* VendorExtensionDesc */
x += put_16bit_le(data+x,0); /* FunctionalMode */