Marcus Meissner
695370da66
L12 is capture capable
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14912 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-25 08:40:32 +00:00
Marcus Meissner
717802d87d
Nikon J and V can apparently only do 100e standard capture and have
...
bad event generation ... so use the old style "wait for new handle"
poll method.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14911 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-23 06:44:07 +00:00
Marcus Meissner
f50628e185
in the 16/16i table matcher, report current state even if there is
...
no remote ENUM / Range.
This can report for EOS the aperture and shutterspeed values even in
modes that do not allow to set them.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14908 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-16 21:26:54 +00:00
Marcus Meissner
21e07a542f
we do not use the namespace returned
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14907 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:31:55 +00:00
Marcus Meissner
3625ef8e1f
cast the unsigned char*
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14906 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:30:39 +00:00
Marcus Meissner
699506167f
From: "Daniel P. Berrange" <dan@berrange.com>
...
The decode_u16/decode_u32 methods may return in an error
path without their output parameter being set. If the
callers don't check for errors, then they'll be reading
uninitialized values.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14905 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:29:54 +00:00
Marcus Meissner
69403f474f
From: "Daniel P. Berrange" <dan@berrange.com>
...
The compiler isn't clever enough to figure out that 'retval'
is always initialized, so add an explicit initialization to
silence the warnings.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14904 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:27:43 +00:00
Marcus Meissner
293ab3b503
From: "Daniel P. Berrange" <dan@berrange.com>
...
The %lld/%llx/%llu format specifiers expect a 'long long'
or 'long long unsigned'. While int64_t/uint64_t are essentially
equivalent, the compiler generates warnings, so add casts to
silence them.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14903 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:26:57 +00:00
Marcus Meissner
18c4ba9cc4
From: "Daniel P. Berrange" <dan@berrange.com>
...
Fixes to misc functions to address char * vs unsigned char *
sign mis-matches, by adding casts to silence the compiler.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14902 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:25:20 +00:00
Marcus Meissner
669d3bfc2f
From: "Daniel P. Berrange" <dan@berrange.com>
...
Many callers of strcpy/scanf/strcmp functions are passing a
'unsigned char *' rather than the 'char *' they expect.
Add explicit casts to silence the compiler.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14901 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:19:32 +00:00
Marcus Meissner
292d2f69aa
From: "Daniel P. Berrange" <dan@berrange.com>
...
Many calls of gp_file_* functions are passing a 'unsigned char *'
rather than the 'char *' they expect. Add explicit casts to
silence the compiler.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14900 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:18:36 +00:00
Marcus Meissner
7318557c35
iFrom: "Daniel P. Berrange" <dan@berrange.com>
...
Many calls of gp_port_* functions are passing a 'unsigned char *'
rather than the 'char *' they expect. Add explicit casts to
silence the compiler.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14899 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:15:34 +00:00
Marcus Meissner
73861f1203
From: "Daniel P. Berrange" <dan@berrange.com>
...
A bunch of static functions are unused, so wrap them in
#if 0
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14898 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:12:39 +00:00
Marcus Meissner
d5c03fa5f7
From: "Daniel P. Berrange" <dan@berrange.com>
...
The pccam300/pccam600 drivers ignored all errors from the
gp_port functions.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14897 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:11:55 +00:00
Marcus Meissner
c1ddde0315
From: "Daniel P. Berrange" <berrange@redhat.com>
...
A great many functions have variables which are set to some
value, but never read thereafter. All these variables can be
removed with no functional impact.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14896 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:10:32 +00:00
Marcus Meissner
9e777504d4
From: "Daniel P. Berrange" <dan@berrange.com>
...
The agfa_capture method failed to check the error return value
of the soundvision_send_command method.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14895 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:01:22 +00:00
Marcus Meissner
4a6a23f63e
From: "Daniel P. Berrange" <dan@berrange.com>
...
The _get_path method in the directory driver does not check
the return value of _get_mountpoint causing it to use
potentially uninitialized data.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14894 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:00:57 +00:00
Marcus Meissner
237f12e073
From: "Daniel P. Berrange" <dan@berrange.com>
...
The 's' variable is assigned to from a 'const char *' so
it should be 'const char *' too, to avoid discarding
const-ness.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14893 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 19:57:17 +00:00
Marcus Meissner
e403964868
From: "Daniel P. Berrange" <dan@berrange.com>
...
The test-filesys.c code is calling gp_filesystem_get_folder and
passing in a 'const char **' instead of 'char **'. It then forgets
to free the heap-allocated result.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14892 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 19:56:23 +00:00
Marcus Meissner
13be843412
From: "Daniel P. Berrange" <dan@berrange.com>
...
The gpi_jpeg_make_quantization and gpi_jpeg_header methods take
a 'jpeg_quantization_table *' arg. The callers pass in a pointer
to a 'const jpeg_quantization_table *' causing compile warnings
about discarding const-ness. Mark the args as 'const' since their
contents are never modified.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14891 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 19:55:41 +00:00
Marcus Meissner
d9f062d842
From: "Daniel P. Berrange" <dan@berrange.com>
...
The jl2005bcd_decompress assigns a 'uint16_t *' variable from
a 'char *'. Since the two types are different sizes it is
safer to add an explicit cast to make it clear what the intended
type promotion behaviour is.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14890 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 19:49:37 +00:00
Marcus Meissner
f097b19028
From: "Daniel P. Berrange" <berrange@redhat.com>
...
The gp_port_usbscsi_get_usb_id method discards const-ness
for the return value of gp_port_usbscsi_resolve_symlink.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14889 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 19:48:29 +00:00
Marcus Meissner
feb8a3e976
added sx16is info
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14888 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-10 19:58:50 +00:00
Marcus Meissner
0ae6766a76
added SX160IS
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14887 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-10 19:56:58 +00:00
Marcus Meissner
b607792afe
again retrieve rootfolder, but avoid Sonys
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14886 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-09 07:07:31 +00:00
Marcus Meissner
97507e3d04
ENODATA cannot be returned with libusb1
...
From: "Daniel P. Berrange" <dan@berrange.com >
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14885 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-08 19:33:02 +00:00
Marcus Meissner
92aaebd7e7
build if ENODATA is not there (mingw)
...
From: "Daniel P. Berrange" <dan@berrange.com >
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14884 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-08 06:28:25 +00:00
Marcus Meissner
12f9b4c065
From: "Daniel P. Berrange" <dan@berrange.com>
...
It isn't sufficient to check HAVE_ICONV before using
iconv on Mingw32. We must also check HAVE_LANGINFO_H.
adjust all references
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14883 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-08 06:26:45 +00:00
Marcus Meissner
65191c7a1e
From: "Daniel P. Berrange" <dan@berrange.com>
...
When building for Windows, the regex functions can be found
in the libregex dll provided by gnurx.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14882 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-08 06:20:36 +00:00
Marcus Meissner
d6eb91770d
do not build usbscsi and usbdiskdirect on mingw/windows
...
From: "Daniel P. Berrange" <dan@berrange.com >
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14881 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-08 06:19:33 +00:00
Marcus Meissner
b718aa85bc
avoid redefining CAMLIB
...
From: "Daniel P. Berrange" <dan@berrange.com >
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14880 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-08 06:17:30 +00:00
Marcus Meissner
5ce7c78b37
remove superflous libusb1.c copy
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14879 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-08 06:16:56 +00:00
Marcus Meissner
3a2361a14a
disable serial on non-unixy systems
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14878 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-08 06:15:15 +00:00
Marcus Meissner
ad6c180cda
updated danish
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14877 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-05 11:59:18 +00:00
Marcus Meissner
973796ca61
added s95
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14875 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-04 10:03:44 +00:00
Marcus Meissner
75ae977c25
updated french
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14872 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-01 05:32:48 +00:00
Marcus Meissner
fd708612fa
updated french
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14871 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-01 05:32:11 +00:00
Marcus Meissner
1e5097934a
2.5.4.1 temp state
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14870 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-31 21:41:50 +00:00
Marcus Meissner
ed77af1c10
rewrote nikon capture code to:
...
- restart liveview after capture if enabled before
- use the PTP_OC_NIKON_InitiateCaptureRecInMedia method also for card
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14869 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-31 21:40:46 +00:00
Marcus Meissner
3824534c37
handle also generic properties with specific vendors
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14868 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-28 22:52:37 +00:00
Marcus Meissner
9677996eae
a900 has capture
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14867 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-28 10:31:18 +00:00
Marcus Meissner
040c980085
updated polish
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14865 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-27 21:32:31 +00:00
Marcus Meissner
fcb99ddeb0
enabled chdk lua script engine again
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14864 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-27 15:14:37 +00:00
Marcus Meissner
3ec80c16e7
fixed a wrong errorcode
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14863 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-27 08:14:53 +00:00
Marcus Meissner
135d784065
updated ukrainian, vietnamese
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14862 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-27 07:48:24 +00:00
Marcus Meissner
26f2198943
added Canon PowerShot A2600 data
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14861 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-26 21:03:14 +00:00
Marcus Meissner
a9c1b7ec69
sony slt a900v probably
...
added Canon Powershot A2600.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14860 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-26 19:28:01 +00:00
Marcus Meissner
6a08319a43
added D3x ids
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14859 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-25 12:49:20 +00:00
Marcus Meissner
bbf56f6f42
added a missing gp_system_closedir(), coverity
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14858 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-03-23 19:21:02 +00:00
Marcus Meissner
7bd9512f22
2.5.4 release
...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14853 67ed7778-7388-44ab-90cf-0a291f65f57c
libgphoto2-2_5_4-release
2014-03-23 18:05:31 +00:00