summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2015-12-09 17:06:55 +0900
committerMinje Ahn <minje.ahn@samsung.com>2015-12-10 09:51:00 +0900
commit2c81268f7bd9e9775b9147909d4afd0c28bc2ea2 (patch)
tree59636dd48584321caa6e53465574b874f28092ce
parent7be0d3c75cb8aacf1d5671d89e2425409e3191c5 (diff)
downloadlibmedia-service-2c81268f7bd9e9775b9147909d4afd0c28bc2ea2.tar.gz
libmedia-service-2c81268f7bd9e9775b9147909d4afd0c28bc2ea2.tar.bz2
libmedia-service-2c81268f7bd9e9775b9147909d4afd0c28bc2ea2.zip
Change-Id: Ibee60bcbc4558f698c591fc662fd85a1a66f8f0c Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-xsrc/common/media-svc-noti.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/common/media-svc-noti.c b/src/common/media-svc-noti.c
index 98ac82b..1dbb6c2 100755
--- a/src/common/media-svc-noti.c
+++ b/src/common/media-svc-noti.c
@@ -40,6 +40,14 @@ static int __media_svc_publish_noti_by_item(media_svc_noti_item *noti_item)
} else {
media_svc_debug("media_db_update_send success");
}
+
+ ret = media_db_update_send_internal(noti_item->pid, noti_item->update_item, noti_item->update_type, noti_item->path, noti_item->media_uuid, noti_item->media_type, noti_item->mime_type);
+ if (ret != MS_MEDIA_ERR_NONE) {
+ media_svc_error("media_db_update_send_internal failed : %d [%s]", ret, noti_item->path);
+ ret = MS_MEDIA_ERR_SEND_NOTI_FAIL;
+ } else {
+ media_svc_debug("media_db_update_send_internal success");
+ }
} else {
media_svc_debug("invalid path");
ret = MS_MEDIA_ERR_INVALID_PARAMETER;
@@ -66,6 +74,14 @@ int _media_svc_publish_noti(media_item_type_e update_item,
} else {
media_svc_debug("Send noti success [%d][%d]", update_item, update_type);
}
+
+ ret = media_db_update_send_internal(getpid(), update_item, update_type, (char *)path, (char *)uuid, media_type, (char *)mime_type);
+ if (ret != MS_MEDIA_ERR_NONE) {
+ media_svc_error("media_db_update_send_internal failed : %d [%s]", ret, path);
+ ret = MS_MEDIA_ERR_SEND_NOTI_FAIL;
+ } else {
+ media_svc_debug("media_db_update_send_internal success [%d][%d]", update_item, update_type);
+ }
} else {
media_svc_debug("invalid path");
ret = MS_MEDIA_ERR_INVALID_PARAMETER;