diff options
author | zmike <michael.blumenkrantz@gmail.com> | 2014-08-07 10:35:52 -0400 |
---|---|---|
committer | zmike <michael.blumenkrantz@gmail.com> | 2014-08-07 10:36:20 -0400 |
commit | 9e4b6b06cb0f2db65893120a0d90bfee585092c4 (patch) | |
tree | 311939406ed0fecd7514241d02536c4ae77562c8 | |
parent | ceecd67d648bf5df9f9f3e877847f26d3b07477c (diff) | |
download | elementary-9e4b6b06cb0f2db65893120a0d90bfee585092c4.tar.gz |
photocam should reset its preload when a new file is loaded
this prevents infinite busy animations
@fix
-rw-r--r-- | src/lib/elm_photocam.c | 1 |
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) free(sd->remote_data); if (sd->remote) _elm_url_cancel(sd->remote); sd->remote = NULL; + sd->preload_num = 0; for (i = 0; i < sizeof (remote_uri) / sizeof (remote_uri[0]); ++i) if (!strncmp(remote_uri[i], file, strlen(remote_uri[i]))) |