photocam should reset its preload when a new file is loaded

this prevents infinite busy animations

@fix
This commit is contained in:
zmike 2014-08-07 10:35:52 -04:00
parent b79405e8d7
commit 6acccd1dff
1 changed files with 1 additions and 0 deletions

View File

@ -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])))