Add error check
authorHyunwoo Kim <hw4444.kim@samsung.com>
Sat, 19 Jan 2013 10:02:20 +0000 (19:02 +0900)
committerHyunwoo Kim <hw4444.kim@samsung.com>
Sat, 19 Jan 2013 10:02:20 +0000 (19:02 +0900)
Change-Id: I226a29a71b056355e235021d51aef6fe04b153dc

main/src/view/ivug-main-view-toolbar.cpp
packaging/ug-image-viewer-efl.spec

index 2097026..e822510 100755 (executable)
@@ -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)
                {
index 5405170..89cfc2b 100755 (executable)
@@ -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