summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2017-04-10 10:40:41 +0200
committerMarcus Meissner <marcus@jet.franken.de>2017-04-10 10:41:02 +0200
commit767b244ec8c3287e7919c7772b9816a531924381 (patch)
tree2aa6cd2e1aa2ba3bb69f2e33f214a9ba5bc99c94
parent6240cb18d906acea570a6b81eabf46bcfe07334b (diff)
downloadlibgphoto2-767b244ec8c3287e7919c7772b9816a531924381.tar.gz
check events before getting sony live view
-rw-r--r--camlibs/ptp2/library.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index e58eb76e3..b30ce4931 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -2814,6 +2814,7 @@ enable_liveview:
unsigned char *ximage = NULL;
int tries = 20;
+ ptp_check_event (params); /* will stall for some reason */
do {
ret = ptp_getobject_with_size(params, preview_object, &ximage, &size);
if (ret == PTP_RC_OK)