提交 f55304d3 authored 作者: Rupa Schomaker's avatar Rupa Schomaker

add some more error logging


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16701 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f15c9f8f
...@@ -613,6 +613,7 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char ...@@ -613,6 +613,7 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char
mpg123_param(context->mh, MPG123_FLAGS, MPG123_SEEKBUFFER | MPG123_MONO_MIX, 0); mpg123_param(context->mh, MPG123_FLAGS, MPG123_SEEKBUFFER | MPG123_MONO_MIX, 0);
if (mpg123_open_feed(context->mh) != MPG123_OK) { if (mpg123_open_feed(context->mh) != MPG123_OK) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error opening mpg feed\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error opening mpg feed\n");
err = (char*) mpg123_strerror(context->mh);
goto error; goto error;
} }
context->stream_url = switch_core_sprintf(context->memory_pool, "http://%s", path); context->stream_url = switch_core_sprintf(context->memory_pool, "http://%s", path);
...@@ -623,6 +624,7 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char ...@@ -623,6 +624,7 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, const char
mpg123_param(context->mh, MPG123_FLAGS, MPG123_MONO_MIX, 0); mpg123_param(context->mh, MPG123_FLAGS, MPG123_MONO_MIX, 0);
if (mpg123_open(context->mh, path) != MPG123_OK) { if (mpg123_open(context->mh, path) != MPG123_OK) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error opening %s\n", path); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error opening %s\n", path);
err = (char*) mpg123_strerror(context->mh);
goto error; goto error;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论