Skip to content

Commit

Permalink
check events before getting sony live view
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed Apr 10, 2017
1 parent 6240cb1 commit 767b244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions camlibs/ptp2/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -2814,6 +2814,7 @@ camera_capture_preview (Camera *camera, CameraFile *file, GPContext *context)
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)
Expand Down

0 comments on commit 767b244

Please sign in to comment.