Modify path when tv profile 63/91563/2 accepted/tizen/common/20161012.154154 accepted/tizen/ivi/20161013.005633 accepted/tizen/mobile/20161013.005548 accepted/tizen/tv/20161013.005604 accepted/tizen/wearable/20161013.005614 submit/tizen/20161012.010406
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 10 Oct 2016 07:56:42 +0000 (16:56 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Mon, 10 Oct 2016 08:23:31 +0000 (17:23 +0900)
Change-Id: Ib6b7b490a7b7cdb1bc4c648c4e43d51970256448
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 5527997..eea1aec 100755 (executable)
@@ -65,7 +65,7 @@ int media_db_update_send_internal(int pid, /* mandatory */
        GDBusConnection *bus = NULL;
        GError *error = NULL;
        char repl_path[MAX_FILEPATH_LEN] = {0, };
-#ifndef _USE_SENIOR_MODE
+#if !defined(_USE_SENIOR_MODE) && !defined(_USE_TV_PATH)
        char *tmp_path = NULL;
        const char *old_path = "/opt/usr/media";
 #endif
@@ -77,7 +77,7 @@ int media_db_update_send_internal(int pid, /* mandatory */
        }
 
        memset(repl_path, 0, sizeof(repl_path));
-#ifndef _USE_SENIOR_MODE
+#if !defined(_USE_SENIOR_MODE) && !defined(_USE_TV_PATH)
        /* Need uid to change path */
        if (strncmp(path, "/opt/usr/home", strlen("/opt/usr/home")) == 0) {
                tmp_path = strstr(path, MEDIA_CONTENT_PATH);
index 36def56..c4a2d84 100755 (executable)
@@ -204,7 +204,7 @@ int media_db_update_send(int pid, /* mandatory */
        GDBusConnection *bus = NULL;
        GError *error = NULL;
        char repl_path[MAX_FILEPATH_LEN] = {0, };
-#ifndef _USE_SENIOR_MODE
+#if !defined(_USE_SENIOR_MODE) && !defined(_USE_TV_PATH)
        char *tmp_path = NULL;
        const char *old_path = "/opt/usr/media";
 #endif
@@ -217,7 +217,7 @@ int media_db_update_send(int pid, /* mandatory */
        }
 
        memset(repl_path, 0, sizeof(repl_path));
-#ifndef _USE_SENIOR_MODE
+#if !defined(_USE_SENIOR_MODE) && !defined(_USE_TV_PATH)
        /* Need uid to change path */
        if (strncmp(path, "/opt/usr/home", strlen("/opt/usr/home")) == 0) {
                tmp_path = strstr(path, MEDIA_CONTENT_PATH);
index 142078b..03f90cc 100755 (executable)
@@ -78,9 +78,13 @@ export CFLAGS="$CFLAGS -D_USE_SENIOR_MODE -D_USE_RECORDED_CONTENT -D_USE_SUSPEND
 %if "%{?profile}" == "mobile"
 export CFLAGS="$CFLAGS -D_USE_MULTI_USER -D_USE_META_UPDATE -D_USE_DEVICED_DBUS -D_USE_SDCARD"
 %else
+%if "%{?profile}" == "tv"
+export CFLAGS="$CFLAGS -D_USE_MULTI_USER -D_USE_META_UPDATE -D_USE_DEVICED_DBUS -D_USE_TV_PATH"
+%else
 export CFLAGS="$CFLAGS -D_USE_MULTI_USER -D_USE_META_UPDATE -D_USE_DEVICED_DBUS"
 %endif
 %endif
+%endif
 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
 rm -rf autom4te.cache
 rm -f aclocal.m4 ltmain.sh