summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Kiran K N <ravi.kiran@samsung.com>2014-12-01 15:07:51 +0530
committerhj kim <backto.kim@samsung.com>2015-07-13 18:15:20 -0700
commit64fda0d835e47d74baab07878782fae8268f500e (patch)
tree084432f96e7540a420bebe7dbb8a726530daaf58
parent51e31533b89929b6aed1a1727c0500cb01ce2d9f (diff)
downloadlibmedia-thumbnail-64fda0d835e47d74baab07878782fae8268f500e.tar.gz
libmedia-thumbnail-64fda0d835e47d74baab07878782fae8268f500e.tar.bz2
libmedia-thumbnail-64fda0d835e47d74baab07878782fae8268f500e.zip
img_codec_osal: print error log before returning
thumb_err in function DrmOpenFile() is unreachable as it is after return statement. Print the error log before return Change-Id: Id37e80a5cf3433d8541f26d49d78f7dd842103cd Signed-off-by: Ravi Kiran K N <ravi.kiran@samsung.com>
-rw-r--r--src/codec/img-codec-osal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/img-codec-osal.c b/src/codec/img-codec-osal.c
index cefe59f..9a257fa 100644
--- a/src/codec/img-codec-osal.c
+++ b/src/codec/img-codec-osal.c
@@ -69,8 +69,8 @@ HFile DrmOpenFile(const char *szPathName)
FILE *fp = fopen(szPathName, "rb");
if (fp == NULL) {
- return (HFile) INVALID_HOBJ;
thumb_err("file open error: %s", szPathName);
+ return (HFile) INVALID_HOBJ;
}
return fp;