From 39b696d7e1f64fc89d0653ecb533caa9bae187a9 Mon Sep 17 00:00:00 2001 From: VBS Date: Fri, 21 Mar 2025 17:41:05 +0900 Subject: [PATCH] Fix coverity issue (check return value) Change-Id: I34ea08f9018ddaf602815d88166903017af12c29 Signed-off-by: VBS --- server/AudioStream.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/AudioStream.cpp b/server/AudioStream.cpp index bcd6d540..58c81d89 100644 --- a/server/AudioStream.cpp +++ b/server/AudioStream.cpp @@ -33,7 +33,10 @@ AudioStream::AudioStream(): mState(AUDIO_STATE_NONE) { createSoundStreamInfo(); - createAudioHandle(mAudioType, mAudioRate); + int ret = createAudioHandle(mAudioType, mAudioRate); + if (TTSD_ERROR_NONE != ret) { + SLOG(LOG_ERROR, tts_tag(), "[AudioStream] Fail to create the audio handle. ret(%s)", get_error_message(ret)); + } } AudioStream::~AudioStream() -- 2.34.1