#include <string.h>
#include <stdbool.h>
#include <dlog.h>
-#include <unistd.h>
#include <mm_transcode.h>
#include <mm_error.h>
#include <video_util.h>
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;