From: hj kim Date: Mon, 16 Sep 2019 06:53:38 +0000 (+0900) Subject: Update code of checking parameter X-Git-Tag: accepted/tizen/unified/20190916.111559^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F213879%2F1;p=platform%2Fcore%2Fmultimedia%2Flibmedia-service.git Update code of checking parameter Change-Id: Iecb2fc0c8ba5a2f19aa0bab41f1982e208f825ad --- diff --git a/src/common/media-svc-util.c b/src/common/media-svc-util.c index f844947..dc79f08 100755 --- a/src/common/media-svc-util.c +++ b/src/common/media-svc-util.c @@ -1665,8 +1665,8 @@ static void __media_svc_get_proper_thumb_size(unsigned int orig_w, unsigned int bool portrait = false; double ratio = 0.0; - media_svc_retm_if(orig_w <= 0, "Invalid orig_w"); - media_svc_retm_if(orig_h <= 0, "Invalid orig_h"); + media_svc_retm_if(!orig_w, "Invalid orig_w"); + media_svc_retm_if(!orig_h, "Invalid orig_h"); media_svc_retm_if(!thumb_w, "Invalid thumb_w"); media_svc_retm_if(!thumb_h, "Invalid thumb_h");