Update msg-service with new API of libmedia-thumbnail sandbox/jbmartin/multiuser
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Tue, 9 Sep 2014 08:13:38 +0000 (10:13 +0200)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Tue, 9 Sep 2014 08:13:38 +0000 (10:13 +0200)
Fix-Tizen: TC-1482

Change-Id: Ibc56175ea96a9b12e3e7e14f60590c4d9e1f144b
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
plugin/mms_plugin/MmsPluginUtil.cpp

index b20e9524bb5eec77840ec4fa2427494ad5d67a67..7eea81bcff01b1d8fbfbef9204d726dfdbdf0ad8 100755 (executable)
@@ -18,6 +18,7 @@
 #include <mm_util_jpeg.h>
 #include <mm_util_imgp.h>
 #include <media-thumbnail.h>
+#include <tzplatform_config.h>
 #include <ctype.h>
 #include <errno.h>
 #include <sys/stat.h>
@@ -39,7 +40,7 @@ bool makeImageThumbnail(char *srcPath, char *dstPath)
        }
 
        int err = -1;
-       err = thumbnail_request_save_to_file(srcPath, MEDIA_THUMB_LARGE, dstPath);
+       err = thumbnail_request_save_to_file(srcPath, MEDIA_THUMB_LARGE, dstPath, tzplatform_getuid(TZ_USER_NAME));
        if (err < 0) {
                MSG_DEBUG("Make thumbnail: failed, err = %d", err);
                return false;