summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2015-12-29 09:20:25 (GMT)
committerMinkyu Kang <mk7.kang@samsung.com>2015-12-29 09:20:25 (GMT)
commit1d7f43616a6b7f16a6b6d71b97ec401aad435391 (patch)
tree9ca84a1b9800e7d8c756255418aa5b8fad11385e
parent9c645c5852df3c5619fb1ccc79009cb637cf557a (diff)
downloadair_mediahub-1d7f43616a6b7f16a6b6d71b97ec401aad435391.zip
air_mediahub-1d7f43616a6b7f16a6b6d71b97ec401aad435391.tar.gz
air_mediahub-1d7f43616a6b7f16a6b6d71b97ec401aad435391.tar.bz2
viewer: set photocam path to NULL after loadedrefs/changes/94/55794/1
Change-Id: I392371d7f098b1c8a3ac916ecf341a8eb131150a Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--src/view/viewer.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/view/viewer.c b/src/view/viewer.c
index 6c7a389..ec5cab7 100644
--- a/src/view/viewer.c
+++ b/src/view/viewer.c
@@ -244,6 +244,7 @@ static void _image_unload(struct _priv *priv)
}
if (priv->photo) {
+ elm_photocam_file_set(priv->photo, NULL);
evas_object_del(priv->photo);
priv->photo = NULL;
}
@@ -263,8 +264,10 @@ static void _image_loaded(void *data, Evas_Object *obj, void *ev)
priv = data;
if (priv->photo != priv->photo_pre) {
- if (priv->photo)
+ if (priv->photo) {
+ elm_photocam_file_set(priv->photo, NULL);
evas_object_del(priv->photo);
+ }
priv->photo = obj;
}
@@ -282,6 +285,7 @@ static void _image_loaded_detail(void *data, Evas_Object *obj, void *ev)
priv = data;
priv->photo_pre = NULL;
+ elm_photocam_file_set(obj, NULL);
util_add_to_recent(priv->playlist.list, priv->playlist.cur);
}
@@ -1429,6 +1433,10 @@ static void _hide(void *view_data)
_slideshow_disable(priv);
_viewer_hide(priv);
+ progressbar_stop(priv->progress);
+ playermgr_stop(priv->player);
+ _image_unload(priv);
+
timeout_handler_enable(priv->timeout, false);
media_content_disconnect();