[v0.2.40] check sdp path about all file path 71/107271/1 accepted/tizen/common/20161227.192704 accepted/tizen/ivi/20161228.083718 accepted/tizen/mobile/20161228.083628 accepted/tizen/tv/20161228.083642 accepted/tizen/wearable/20161228.083654 submit/tizen/20161227.144440
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 27 Dec 2016 08:27:12 +0000 (17:27 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Tue, 27 Dec 2016 09:24:45 +0000 (01:24 -0800)
Change-Id: Ia756552d0920bde50039649cbe80f3e4b329e128
(cherry picked from commit 540311c16a491bbea962a5648ba2be82ab44a0fe)

muse/src/muse_player.c
packaging/mmsvc-player.spec

index 30483676a9ce01fffa2649c93f08f1f5fc5d724b..a4cc23395801bf5c5994e065ed6bcbb33e85771e 100644 (file)
@@ -339,12 +339,11 @@ static int _check_supportable(muse_module_h module, char *path)
        } 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)
index d7587db68152247f6336e64d4ac8e859be342df8..6504fdeb4d78fbc27bca1491617160b324e9e4fb 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.39
+Version:    0.2.40
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0