From f55304d30be1f9284415b3e285804d0c357f7e2e Mon Sep 17 00:00:00 2001 From: Rupa Schomaker <rupa@rupa.com> Date: Fri, 19 Feb 2010 17:39:41 +0000 Subject: [PATCH] add some more error logging git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16701 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shout/mod_shout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index 02a6df2c69..66baff8ce4 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -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); if (mpg123_open_feed(context->mh) != MPG123_OK) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error opening mpg feed\n"); + err = (char*) mpg123_strerror(context->mh); goto error; } 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 mpg123_param(context->mh, MPG123_FLAGS, MPG123_MONO_MIX, 0); if (mpg123_open(context->mh, path) != MPG123_OK) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error opening %s\n", path); + err = (char*) mpg123_strerror(context->mh); goto error; }