From 1e04e7cb81f451e5ebc06ae84573184b6dae7976 Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Thu, 15 Jun 2017 15:25:47 +0900 Subject: [PATCH] Fix build error [Version] 0.1.10 [Profile] Mobile, TV [Issue Type] Fix build error Change-Id: I9d2e647567ca8990b61ebb26f8331df7f8b66a88 --- src/video_util.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/video_util.c b/src/video_util.c index bb2fbbd..4828c13 100755 --- a/src/video_util.c +++ b/src/video_util.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include @@ -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; -- 2.7.4