Fix noti code when media-server request noti 22/103622/1 accepted/tizen/3.0/common/20161209.161137 accepted/tizen/3.0/ivi/20161209.104730 accepted/tizen/3.0/mobile/20161209.104633 accepted/tizen/3.0/tv/20161209.104652 accepted/tizen/3.0/wearable/20161209.104711 submit/tizen_3.0/20161209.040745
authorMinje Ahn <minje.ahn@samsung.com>
Fri, 9 Dec 2016 03:26:21 +0000 (12:26 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Fri, 9 Dec 2016 03:26:21 +0000 (12:26 +0900)
Change-Id: I40c05e2a01f12e2808cfc8d9ac22c1a971559cae
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
lib/media-util-noti-internal.c
lib/media-util-noti.c
packaging/media-server.spec

index 4e21ae3..512a7c7 100755 (executable)
@@ -82,9 +82,10 @@ int media_db_update_send_internal(int pid, /* mandatory */
        if (strncmp(path, MEDIA_ROOT_PATH_EXTERNAL, strlen(MEDIA_ROOT_PATH_EXTERNAL)) == 0) {
                snprintf(repl_path, sizeof(repl_path), "%s", path);
        } else {
-               if (storage_get_origin_internal_path(path, MAX_FILEPATH_LEN, repl_path) != STORAGE_ERROR_NONE) {
-                       MSAPI_DBG("Failed to change internal path");
-                       return MS_MEDIA_ERR_INTERNAL;
+               if (storage_get_compat_internal_path(path, MAX_FILEPATH_LEN, repl_path) != STORAGE_ERROR_NONE) {
+                       MSAPI_DBG("Failed to change internal path..[%s] So, sending original path", path);
+                       memset(repl_path, 0, sizeof(repl_path));
+                       snprintf(repl_path, sizeof(repl_path), "%s", path);
                }
        }
 
index 54ca5f3..8474c78 100755 (executable)
@@ -222,9 +222,10 @@ int media_db_update_send(int pid, /* mandatory */
        if (strncmp(path, MEDIA_ROOT_PATH_EXTERNAL, strlen(MEDIA_ROOT_PATH_EXTERNAL)) == 0) {
                snprintf(repl_path, sizeof(repl_path), "%s", path);
        } else {
-               if (storage_get_origin_internal_path(path, MAX_FILEPATH_LEN, repl_path) != STORAGE_ERROR_NONE) {
-                       MSAPI_DBG("Failed to change internal path");
-                       return MS_MEDIA_ERR_INTERNAL;
+               if (storage_get_compat_internal_path(path, MAX_FILEPATH_LEN, repl_path) != STORAGE_ERROR_NONE) {
+                       MSAPI_DBG("Failed to change internal path..[%s] So, sending original path", path);
+                       memset(repl_path, 0, sizeof(repl_path));
+                       snprintf(repl_path, sizeof(repl_path), "%s", path);
                }
        }
 
index 6441205..8c2dc16 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       media-server
 Summary:    A server for media content management
-Version:    0.3.21
+Version:    0.3.22
 Release:    0
 Group:      Multimedia/Service
 License:    Apache-2.0