Merge branch 'tizen_3.0' into tizen 75/105575/2 accepted/tizen/common/20161220.191021 accepted/tizen/ivi/20161220.223826 accepted/tizen/mobile/20161220.223657 accepted/tizen/tv/20161220.223730 accepted/tizen/unified/20170309.032011 submit/tizen/20161220.104958 submit/tizen_unified/20170308.100405
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 19 Dec 2016 05:03:44 +0000 (14:03 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 19 Dec 2016 05:03:49 +0000 (14:03 +0900)
Change-Id: I2d9ab25257f920803db1e62e85c256683ca90562

packaging/capi-media-video-util.spec
src/video_util.c

index c895775..a1f6fd7 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-video-util
 Summary:    A Video Utility library in Tizen Native API
-Version:    0.1.8
+Version:    0.1.9
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index f433983..6fe67c1 100755 (executable)
@@ -237,8 +237,12 @@ static void __video_util_transcode_completed_cb(int error, void *user_data)
        int error_value = VIDEO_UTIL_ERROR_NONE;
        video_util_s *_handle = (video_util_s *)user_data;
 
-       if ((_handle != NULL) && (_handle->_util_cb != NULL)
-               && (_handle->_util_cb->transcode_completed_cb != NULL)) {
+       if (_handle == NULL) {
+               video_util_error("INVALID_PARAMETER");
+               return;
+       }
+
+       if ((_handle->_util_cb != NULL) && (_handle->_util_cb->transcode_completed_cb != NULL)) {
                error_value = __video_util_error_convert(error);
                _handle->_util_cb->transcode_completed_cb(error_value, _handle->_util_cb->user_data);
        }