} else {
char *file_path = path;
- if (strncmp(path, "file://", strlen("file://")) == 0) {
- if (_is_sdp_file(path)) /* check internet privilege */
- privilege = INTERNET_PRIVILEGE_NAME;
- else
- file_path = path+7; /* remove file prefix */
- }
+ if (strncmp(path, "file://", strlen("file://")) == 0)
+ file_path = path+7; /* remove file prefix */
+
+ if (_is_sdp_file(file_path)) /* check internet privilege */
+ privilege = INTERNET_PRIVILEGE_NAME;
if (!privilege) {
if (strncmp(file_path, MEDIA_PATH_EXTERNAL, strlen(MEDIA_PATH_EXTERNAL)) == 0)