cedric pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=8d24ffbb693148fcae25266a289fb5647085ccfd
commit 8d24ffbb693148fcae25266a289fb5647085ccfd Author: Cedric BAIL <[email protected]> Date: Tue Jan 13 15:25:10 2015 +0100 photocam: force reload of image on file_set. Thanks, bug reported by [email protected] . --- src/lib/elm_photocam.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_photocam.c b/src/lib/elm_photocam.c index dc88c0b..da6ea09 100644 --- a/src/lib/elm_photocam.c +++ b/src/lib/elm_photocam.c @@ -1429,7 +1429,11 @@ _internal_file_set(Eo *obj, Elm_Photocam_Data *sd, const char *file, Eina_File * int w, h; double tz; - if (!eina_stringshare_replace(&sd->file, file)) return; + // It is actually to late, we have lost the reference to the previous + // file descriptor already, so we can't know if the file changed. To + // be safe we do for now just force a full reload on file_set and hope + // on evas to catch it, if there is no change. + eina_stringshare_replace(&sd->file, file); sd->f = eina_file_dup(f); evas_object_image_smooth_scale_set(sd->img, (sd->no_smooth == 0)); --
