Fix build error 78/134178/1 accepted/tizen/4.0/unified/20170816.010323 accepted/tizen/4.0/unified/20170816.014126 accepted/tizen/4.0/unified/20170828.223709 accepted/tizen/unified/20170616.154238 submit/tizen/20170615.061112 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100002 submit/tizen_4.0_unified/20170814.115522
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 15 Jun 2017 06:25:47 +0000 (15:25 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 15 Jun 2017 06:25:47 +0000 (15:25 +0900)
[Version] 0.1.10
[Profile] Mobile, TV
[Issue Type] Fix build error

Change-Id: I9d2e647567ca8990b61ebb26f8331df7f8b66a88

src/video_util.c

index bb2fbbd..4828c13 100755 (executable)
@@ -18,7 +18,6 @@
 #include <string.h>
 #include <stdbool.h>
 #include <dlog.h>
-#include <unistd.h>
 #include <mm_transcode.h>
 #include <mm_error.h>
 #include <video_util.h>
@@ -383,17 +382,6 @@ int video_util_set_file_path(video_util_h handle, const char *file_path)
                video_util_secure_info("file_path [%s]\n", file_path);
 
                if (_handle->input_path != NULL) {
-                       int exist = 0;
-                       exist = open(file_path, O_RDONLY);
-                       if (exist < 0) {
-                               video_util_error("Fail to open original_path[%s]", file_path);
-                               if (errno == EACCES || errno == EPERM)
-                                       return VIDEO_UTIL_ERROR_PERMISSION_DENIED;
-                               else
-                                       return VIDEO_UTIL_ERROR_INVALID_PARAMETER;
-                       }
-                       close(exist);
-
                        ret = __video_util_check_transcode_is_busy(_handle, &is_busy);
                        if (ret != VIDEO_UTIL_ERROR_NONE)
                                return ret;