If i add metadata to a file that doesn't already have metadata and then try to retrieve that metadata, i get a null pointer when calling get_data_and_size to retrieve the metadata.
If i add the metadata then gp_camera_exit the camera, i get the 'updating library' screen. If i then connect to the camera again i can access the metadata.
If the device has to update the library, it should be done from within libgphoto2 (or the driver) so the end user doesn't have to worry about disconnecting and reconnecting, which can be quite a lengthy process.
However, if this is going to be handled inside libgphoto2, you may have to give a new method which allows you to either supply an array of files which need to be uploaded before updating the library, or supply a 'BeginUpdate' and 'EndUpdate' method so that when batch uploading a lot of files, you don't end up resyncing the library between each file, which could potentially be quite slow.
Logged In: YES
user_id=899047
Originator: YES
Forgot to say, this happens on a Creative Vision M device.