projects
/
platform
/
core
/
multimedia
/
libmedia-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c639dd
)
Update code of checking parameter
79/213879/1
accepted/tizen/unified/20190916.111559
submit/tizen/20190916.065445
author
hj kim
<backto.kim@samsung.com>
Mon, 16 Sep 2019 06:53:38 +0000
(15:53 +0900)
committer
hj kim
<backto.kim@samsung.com>
Mon, 16 Sep 2019 06:53:38 +0000
(15:53 +0900)
Change-Id: Iecb2fc0c8ba5a2f19aa0bab41f1982e208f825ad
src/common/media-svc-util.c
patch
|
blob
|
history
diff --git
a/src/common/media-svc-util.c
b/src/common/media-svc-util.c
index
f844947
..
dc79f08
100755
(executable)
--- 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");