summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2014-08-07 10:35:52 -0400
committerzmike <michael.blumenkrantz@gmail.com>2014-08-07 10:36:20 -0400
commit9e4b6b06cb0f2db65893120a0d90bfee585092c4 (patch)
tree311939406ed0fecd7514241d02536c4ae77562c8
parentceecd67d648bf5df9f9f3e877847f26d3b07477c (diff)
photocam should reset its preload when a new file is loaded
this prevents infinite busy animations @fix
-rw-r--r--src/lib/elm_photocam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c
index 57e813769..88b02f1f8 100644
--- a/src/lib/elm_photocam.c
+++ b/src/lib/elm_photocam.c
@@ -1572,6 +1572,7 @@ _elm_photocam_file_set(Eo *obj, Elm_Photocam_Data *sd, const char *file)
1572 free(sd->remote_data); 1572 free(sd->remote_data);
1573 if (sd->remote) _elm_url_cancel(sd->remote); 1573 if (sd->remote) _elm_url_cancel(sd->remote);
1574 sd->remote = NULL; 1574 sd->remote = NULL;
1575 sd->preload_num = 0;
1575 1576
1576 for (i = 0; i < sizeof (remote_uri) / sizeof (remote_uri[0]); ++i) 1577 for (i = 0; i < sizeof (remote_uri) / sizeof (remote_uri[0]); ++i)
1577 if (!strncmp(remote_uri[i], file, strlen(remote_uri[i]))) 1578 if (!strncmp(remote_uri[i], file, strlen(remote_uri[i])))