From a985a2d82dc7f967058b31b6ec7939d8aed1004f Mon Sep 17 00:00:00 2001 From: Hyunwoo Kim Date: Sat, 19 Jan 2013 19:02:20 +0900 Subject: [PATCH] Add error check Change-Id: I226a29a71b056355e235021d51aef6fe04b153dc --- main/src/view/ivug-main-view-toolbar.cpp | 7 +++++++ packaging/ug-image-viewer-efl.spec | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/main/src/view/ivug-main-view-toolbar.cpp b/main/src/view/ivug-main-view-toolbar.cpp index 2097026..e822510 100755 --- a/main/src/view/ivug-main-view-toolbar.cpp +++ b/main/src/view/ivug-main-view-toolbar.cpp @@ -36,8 +36,15 @@ bool ivug_is_editable_video_file(char *filepath) efreet_mime_init(); const char *type = NULL; type = efreet_mime_type_get(ivug_get_filename(filepath)); + efreet_mime_shutdown(); + if ( type == NULL ) + { + MSG_UTIL_ERROR("Cannot get mime type for %s", filepath); + return false; + } + MSG_UTIL_MED("mime type = %s", type); if(strcmp(type, MIME_TYPE_3GPP) == 0) { diff --git a/packaging/ug-image-viewer-efl.spec b/packaging/ug-image-viewer-efl.spec index 5405170..89cfc2b 100755 --- a/packaging/ug-image-viewer-efl.spec +++ b/packaging/ug-image-viewer-efl.spec @@ -7,7 +7,7 @@ Name: ug-image-viewer-efl Summary: Image Viewer UI Gadget v1.0 -Version: 1.7.2 +Version: 1.7.3 Release: 0 Group: misc License: Flora Software License -- 2.7.4