summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2018-03-19 19:16:43 +0900
committerMinje ahn <minje.ahn@samsung.com>2018-03-20 00:12:09 +0000
commit0a3bef03fb762ed3f7825ed0231e188991f30c72 (patch)
tree7621d3081293ace63b5b3d879f08f63c5f0de609 /test
parentd75689908a8efc42e3774ae20553b75c9fc1c1be (diff)
downloadmedia-content-0a3bef03fb762ed3f7825ed0231e188991f30c72.tar.gz
media-content-0a3bef03fb762ed3f7825ed0231e188991f30c72.tar.bz2
media-content-0a3bef03fb762ed3f7825ed0231e188991f30c72.zip
Change-Id: Id0f867452ca0210cda470c9d5c4f44f8388e6b01
Diffstat (limited to 'test')
-rwxr-xr-xtest/media-content_test.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/media-content_test.c b/test/media-content_test.c
index 8f35f0c..2dee86d 100755
--- a/test/media-content_test.c
+++ b/test/media-content_test.c
@@ -235,10 +235,14 @@ bool gallery_folder_list_cb(media_folder_h folder, void *user_data)
bool gallery_media_item_cb(media_info_h media, void *user_data)
{
media_info_h new_media = NULL;
- media_info_clone(&new_media, media);
+ int ret = MEDIA_CONTENT_ERROR_NONE;
- GList **list = (GList**)user_data;
- *list = g_list_append(*list, new_media);
+ ret = media_info_clone(&new_media, media);
+
+ if (ret != MEDIA_CONTENT_ERROR_NONE) {
+ GList **list = (GList**)user_data;
+ *list = g_list_append(*list, new_media);
+ }
return true;
}