Add Null checking for stream info handle 28/45928/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150813.083656 accepted/tizen/tv/20150813.083710 accepted/tizen/wearable/20150813.083729 submit/tizen/20150813.070320 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorinhyeok <i_bc.kim@samsung.com>
Wed, 12 Aug 2015 09:58:46 +0000 (18:58 +0900)
committerinhyeok <i_bc.kim@samsung.com>
Wed, 12 Aug 2015 10:00:07 +0000 (19:00 +0900)
[Version] Release 0.1.14
[Profile] Common
[Issue Type] Fix bugs

Change-Id: I8e1853b12dbadc05c9ffb95a509a4a1ebfc4943d
Signed-off-by: inhyeok <i_bc.kim@samsung.com>
packaging/capi-media-wav-player.spec
src/wav_player.c

index 37f7c75..d7582b1 100755 (executable)
@@ -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
index e7d68b8..c655b51 100755 (executable)
@@ -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);