From: Jiyong Min Date: Mon, 30 May 2016 22:57:23 +0000 (+0900) Subject: Add to check string valid for thumbnail path when thumbnail is completed X-Git-Tag: accepted/tizen/common/20160603.150906~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F72128%2F1;p=platform%2Fcore%2Fapi%2Fmedia-content.git Add to check string valid for thumbnail path when thumbnail is completed Change-Id: I5ce1cf9caa9d0689b976522c148c0be264e0119b Signed-off-by: Jiyong Min --- diff --git a/src/media_info.c b/src/media_info.c index ec3b50d..19e806a 100755 --- a/src/media_info.c +++ b/src/media_info.c @@ -84,7 +84,7 @@ static void __media_info_thumbnail_completed_cb(int error, const char *path, voi if (_thumb_cb != NULL) { media = _thumb_cb->handle; - if ((media != NULL) && (path != NULL)) { + if ((media != NULL) && STRING_VALID(path)) { SAFE_FREE(media->thumbnail_path); media->thumbnail_path = g_strdup(path); }