Skip to content

Commit

Permalink
Merge pull request #2395 from seven1240/fix-mac-build
Browse files Browse the repository at this point in the history
[mod_shout] fix build with new clang on macOS
  • Loading branch information
andywolk authored Jan 23, 2025
2 parents 3b58ebc + ad2f742 commit 102e4c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mod/formats/mod_shout/mod_shout.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,11 @@ static void *SWITCH_THREAD_FUNC write_stream_thread(switch_thread_t *thread, voi
}
} else {
memset(mp3buf, 0, 128);
shout_send(context->shout, mp3buf, 128);
ret = shout_send(context->shout, mp3buf, 128);
if (ret != SHOUTERR_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Send error: %s\n", shout_get_error(context->shout));
goto error;
}
}

shout_sync(context->shout);
Expand Down

0 comments on commit 102e4c0

Please sign in to comment.