Change-Id: I3fa6c760a06391576c39e29b1f0d53e395b4facd
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
mp_setting_set_player_state(MP_PLAY_STATE_NONE);
}
- error = sound_manager_destroy_stream_information(ad->stream_info);
- if (error != SOUND_MANAGER_ERROR_NONE) {
- DEBUG_TRACE("unable to destroy stream. error code [%x]", error);
- }
is_seeking = false;
g_reserved_seek_pos = -1;
g_reserved_cb = NULL;
mp_volume_finalize();
+ if(ad->stream_info) {
+ int error = sound_manager_destroy_stream_information(ad->stream_info);
+ if (error != SOUND_MANAGER_ERROR_NONE) {
+ ERROR_TRACE("unable to destroy stream. error code [%x]", error);
+ }
+ }
+
#ifdef MP_SOUND_PLAYER
mp_setting_set_nowplaying_id(0);
#endif