From: inhyeok Date: Wed, 12 Aug 2015 09:58:46 +0000 (+0900) Subject: Add Null checking for stream info handle X-Git-Tag: accepted/tizen/mobile/20150813.083656^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=cbef583c7043222440f886e206160e80b9418b71;p=platform%2Fcore%2Fapi%2Fwav-player.git Add Null checking for stream info handle [Version] Release 0.1.14 [Profile] Common [Issue Type] Fix bugs Change-Id: I8e1853b12dbadc05c9ffb95a509a4a1ebfc4943d Signed-off-by: inhyeok --- diff --git a/packaging/capi-media-wav-player.spec b/packaging/capi-media-wav-player.spec index 37f7c75..d7582b1 100755 --- a/packaging/capi-media-wav-player.spec +++ b/packaging/capi-media-wav-player.spec @@ -1,6 +1,6 @@ Name: capi-media-wav-player Summary: A wav player library in Tizen C API -Version: 0.1.13 +Version: 0.1.14 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/wav_player.c b/src/wav_player.c index e7d68b8..c655b51 100755 --- a/src/wav_player.c +++ b/src/wav_player.c @@ -90,7 +90,7 @@ int wav_player_start_with_stream_info(const char *path, sound_stream_info_h stre int stream_id; bool result = false; - if( path == NULL) + if( path == NULL || stream_info == NULL ) return __convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_PARAMETER); ret = sound_manager_is_available_stream_information(stream_info, NATIVE_API_WAV_PLAYER, &result);