diff options
-rwxr-xr-x | src/media_content.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/media_content.c b/src/media_content.c index 4d13adc..98365d9 100755 --- a/src/media_content.c +++ b/src/media_content.c @@ -905,12 +905,12 @@ int media_content_scan_folder(const char *path, bool is_recursive, media_scan_co memset(storage_id, 0x00, sizeof(storage_id)); - ret = _media_util_check_ignore_dir(path, &ignore_dir); - media_content_retvm_if(ignore_dir, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid folder path"); - ret = __media_content_check_dir(path); media_content_retvm_if(ret == MEDIA_CONTENT_ERROR_PERMISSION_DENIED, ret, "Permission Denied"); + ret = _media_util_check_ignore_dir(path, &ignore_dir); + media_content_retvm_if(ignore_dir, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid folder path"); + media_content_scan_cb_data *cb_data = NULL; cb_data = (media_content_scan_cb_data *)malloc(sizeof(media_content_scan_cb_data)); media_content_retvm_if(cb_data == NULL, MEDIA_CONTENT_ERROR_OUT_OF_MEMORY, "OUT_OF_MEMORY"); |