summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>2014-03-03 09:21:53 (GMT)
committerSabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>2014-03-03 09:21:53 (GMT)
commit7e3e82b79e27d6e481f3470299257c6d3cc7812e (patch)
treecdb27cbc7a35e379f8a913a847519e49ce7ddd70
parent5501705ca2088e4fea1d5387b252a61cacfd530b (diff)
downloadlibmedia-thumbnail-7e3e82b79e27d6e481f3470299257c6d3cc7812e.zip
libmedia-thumbnail-7e3e82b79e27d6e481f3470299257c6d3cc7812e.tar.gz
libmedia-thumbnail-7e3e82b79e27d6e481f3470299257c6d3cc7812e.tar.bz2
Change-Id: I9e54129f903594ffe47b40c85b9e961b5aabe6d0 Bug-Tizen: PTREL-191 Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
-rw-r--r--CMakeLists.txt2
-rw-r--r--packaging/libmedia-thumbnail.spec1
-rwxr-xr-xsrc/include/util/media-thumb-util.h7
3 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 548d4a3..c6a2780 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,7 +44,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/src/include
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
glib-2.0 gthread-2.0 dlog mm-fileinfo drm-client aul
-libexif ecore-evas evas mmutil-imgp mmutil-jpeg heynoti libmedia-utils vconf)
+libexif ecore-evas evas mmutil-imgp mmutil-jpeg heynoti libmedia-utils vconf libtzplatform-config)
FOREACH(flag ${pkgs_CFLAGS})
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index dc252c3..fd0f310 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -22,6 +22,7 @@ BuildRequires: pkgconfig(mm-fileinfo)
BuildRequires: pkgconfig(mmutil-imgp)
BuildRequires: pkgconfig(mmutil-jpeg)
BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(libtzplatform-config)
Requires: media-server
%description
diff --git a/src/include/util/media-thumb-util.h b/src/include/util/media-thumb-util.h
index 335c4a5..8cb68ea 100755
--- a/src/include/util/media-thumb-util.h
+++ b/src/include/util/media-thumb-util.h
@@ -23,6 +23,7 @@
#include "media-thumb-types.h"
#include "media-thumb-debug.h"
#include "media-util.h"
+#include <tzplatform_config.h>
#ifndef _MEDIA_THUMB_UTIL_H_
#define _MEDIA_THUMB_UTIL_H_
@@ -42,10 +43,10 @@
#define THUMB_PATH_PHONE MEDIA_ROOT_PATH_INTERNAL /**< File path prefix of files stored in phone */
#define THUMB_PATH_MMC MEDIA_ROOT_PATH_SDCARD /**< File path prefix of files stored in mmc card */
-#define THUMB_PHONE_PATH MEDIA_DATA_PATH"/.thumb/phone"
-#define THUMB_MMC_PATH MEDIA_DATA_PATH"/.thumb/mmc"
+#define THUMB_PHONE_PATH tzplatform_mkpath(TZ_USER_DATA, "file-manager-service/.thumb/phone")
+#define THUMB_MMC_PATH tzplatform_mkpath(TZ_USER_DATA, "file-manager-service/.thumb/mmc")
-#define THUMB_DEFAULT_PATH MEDIA_DATA_PATH"/.thumb/thumb_default.png"
+#define THUMB_DEFAULT_PATH tzplatform_mkpath(TZ_USER_DATA, "file-manager-service/.thumb/thumb_default.png")
typedef enum
{