[v0.2.40] check sdp path about all file path 44/107244/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.125404 accepted/tizen/3.0.m2/tv/20170104.125633 accepted/tizen/3.0.m2/wearable/20170104.125848 accepted/tizen/3.0/common/20161228.071736 accepted/tizen/3.0/ivi/20161228.022533 accepted/tizen/3.0/mobile/20161228.022440 accepted/tizen/3.0/tv/20161228.022452 accepted/tizen/3.0/wearable/20161228.022508 submit/tizen_3.0.m2/20170104.093750 submit/tizen_3.0/20161227.144016
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 08:27:12 +0000 (17:27 +0900)
Change-Id: Ia756552d0920bde50039649cbe80f3e4b329e128

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