From: <mar...@us...> - 2012-04-01 16:55:32
|
Revision: 13957 http://gphoto.svn.sourceforge.net/gphoto/?rev=13957&view=rev Author: marcusmeissner Date: 2012-04-01 16:55:25 +0000 (Sun, 01 Apr 2012) Log Message: ----------- hack for samsung galaxy ... if no storageid was read, just assume 0x00010001 Modified Paths: -------------- trunk/libgphoto2/camlibs/ptp2/library.c Modified: trunk/libgphoto2/camlibs/ptp2/library.c =================================================================== --- trunk/libgphoto2/camlibs/ptp2/library.c 2012-04-01 10:41:14 UTC (rev 13956) +++ trunk/libgphoto2/camlibs/ptp2/library.c 2012-04-01 16:55:25 UTC (rev 13957) @@ -3981,10 +3981,14 @@ if (!strcmp(folder, "/")) { if (ptp_operation_issupported(params,PTP_OC_GetStorageIDs)) { PTPStorageIDs storageids; + char fname[PTP_MAXSTRLEN]; CPR (context, ptp_getstorageids(params, &storageids)); + if (!storageids.n) { + snprintf(fname, sizeof(fname), STORAGE_FOLDER_PREFIX"%08x",0x00010001); + CR (gp_list_append (list, fname, NULL)); + } for (i=0; i<storageids.n; i++) { - char fname[PTP_MAXSTRLEN]; /* invalid storage, storageinfo might fail on it (Nikon D300s e.g.) */ if ((storageids.Storage[i]&0x0000ffff)==0) continue; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |