change position of cleaup function after fail to find format in mmfile_format_open()
authorYong Yeon Kim <yy9875.kim@samsung.com>
Wed, 20 Mar 2013 01:41:51 +0000 (10:41 +0900)
committerYong Yeon Kim <yy9875.kim@samsung.com>
Wed, 20 Mar 2013 01:41:51 +0000 (10:41 +0900)
formats/ffmpeg/mm_file_formats.c
packaging/libmm-fileinfo.spec

index 330fa96..572ecb1 100755 (executable)
@@ -873,7 +873,7 @@ find_valid_handler:
 
                ret = MMFileOpenFunc[index] (formatObject);
                if (MMFILE_FORMAT_FAIL == ret) {
-                       _CleanupFrameContext (formatObject, true);
+//                     _CleanupFrameContext (formatObject, true);
                        continue;
                }
 
@@ -884,6 +884,7 @@ find_valid_handler:
 
        if (index == MM_FILE_FORMAT_NUM + 1 && MMFILE_FORMAT_FAIL == ret) {
                debug_error ("can't find file format handler\n");
+               _CleanupFrameContext (formatObject, true);
                ret = MMFILE_FORMAT_FAIL;
                goto exception;
        }
index c83d8a6..e18ccd3 100755 (executable)
@@ -1,7 +1,7 @@
 Name:      libmm-fileinfo
 Summary:    Media Fileinfo
 Version:    0.6.0
-Release:    17
+Release:    18
 Group:      System/Libraries
 License:    Apache License, Version 2.0
 Source0:    %{name}-%{version}.tar.gz