From: vijay tiwari Date: Wed, 29 Jun 2016 10:21:18 +0000 (+0530) Subject: TSAM-5146 Thumbnail of broken videos not display in default X-Git-Tag: submit/tizen_mobile/20160629.151650^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b6c351b2121ea2f5f437bb62c9178ec059c4f43;p=profile%2Fmobile%2Fapps%2Fnative%2Fmyfiles.git TSAM-5146 Thumbnail of broken videos not display in default Change-Id: I223f9890dc4252b549add9df921d23a581aab08b --- diff --git a/src/widget/mf-genlist.c b/src/widget/mf-genlist.c index 5037033..28e9456 100755 --- a/src/widget/mf-genlist.c +++ b/src/widget/mf-genlist.c @@ -499,10 +499,11 @@ static Evas_Object *__mf_genlist_gl_default_icon_get_lite(void *data, Evas_Objec mf_debug("file type : %d / storage type : %d", params->file_type, params->storage_type); + params->real_thumb_flag = EINA_FALSE; /* Make thumbnail for performance issue */ - if (!(params->real_thumb_flag && params->thumb_path)) { + // if (!(params->real_thumb_flag && params->thumb_path)) { TODO: Need to check more about this condition mf_genlist_get_thumbnail(params); - } + // } if (params->file_type == FILE_TYPE_MUSIC || params->file_type == FILE_TYPE_SOUND) { if (params->thumb_path && mf_file_exists(params->thumb_path) && @@ -608,9 +609,9 @@ static Evas_Object *__mf_genlist_gl_default_icon_get_lite(void *data, Evas_Objec mf_file_attr_get_file_size(params->m_ItemName->str, &size); if (size < 4*1024*1024) elm_image_file_set(thumb, params->m_ItemName->str, NULL);*/ - if (g_is_refresh_at_glist == false) { + /* if (g_is_refresh_at_glist == false) { mf_view_refresh_thumbnail_for_other_memory(ap, ap->mf_FileOperation.file_list); - } else { + } else {*/ mf_debug("52"); if (params->pNode && params->pNode->thumbnail_path) {//For supporting the otg thumbnail mf_debug("53"); @@ -633,8 +634,10 @@ static Evas_Object *__mf_genlist_gl_default_icon_get_lite(void *data, Evas_Objec elm_image_preload_disabled_set(thumb, EINA_FALSE); //elm_layout_content_set(layout, "elm.swallow.content", thumb); } - } - g_is_refresh_at_glist = true; + // } + if (!g_is_refresh_at_glist) { + g_is_refresh_at_glist = true; + } } else { elm_image_file_set(thumb, params->thumb_path, NULL); }