The above line switch to SDRAM, if the previous PTP_DPC_NIKON_LiveViewStatus is set to Off in the line:
ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &value, PTP_DTC_UINT8)
It seems unrelated to change the media type, based on the live view status... And it cause side effects for my project, when the media type is changed as a side effect of other calls.
https://github.com/gphoto/libgphoto2/blob/c6fa741bbc21b458714e3933b087ce6e66022fad/camlibs/ptp2/config.c#L8205
The above line switch to SDRAM, if the previous PTP_DPC_NIKON_LiveViewStatus is set to Off in the line: ptp_getdevicepropvalue (params, PTP_DPC_NIKON_LiveViewStatus, &value, PTP_DTC_UINT8)
It seems unrelated to change the media type, based on the live view status... And it cause side effects for my project, when the media type is changed as a side effect of other calls.