From cbef583c7043222440f886e206160e80b9418b71 Mon Sep 17 00:00:00 2001 From: inhyeok Date: Wed, 12 Aug 2015 18:58:46 +0900 Subject: [PATCH] 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 --- packaging/capi-media-wav-player.spec | 2 +- src/wav_player.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.7.4