discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=9e4b6b06cb0f2db65893120a0d90bfee585092c4

commit 9e4b6b06cb0f2db65893120a0d90bfee585092c4
Author: zmike <michael.blumenkra...@gmail.com>
Date:   Thu Aug 7 10:35:52 2014 -0400

    photocam should reset its preload when a new file is loaded
    
    this prevents infinite busy animations
    
    @fix
---
 src/lib/elm_photocam.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c
index 57e8137..88b02f1 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])))

-- 


Reply via email to