From b84dcd0dacddc18bfd1b20c2bf72b7e5c213448b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 14 Oct 2008 21:50:50 +0000 Subject: [PATCH] shout, shout, let it all out, this is the ram we were talkin about git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10017 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shout/mod_shout.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mod/formats/mod_shout/mod_shout.c b/src/mod/formats/mod_shout/mod_shout.c index 64ebaac0ed..c3815d7475 100644 --- a/src/mod/formats/mod_shout/mod_shout.c +++ b/src/mod/formats/mod_shout/mod_shout.c @@ -189,7 +189,6 @@ static inline void free_context(shout_context_t *context) } if (context->mh) { - mpg123_close(context->mh); mpg123_delete(context->mh); } } @@ -456,7 +455,7 @@ static size_t stream_callback(void *ptr, size_t size, size_t nmemb, void *data) goto error; } - mpg123_close(context->mh); + mpg123_delete(context->mh); context->mh = our_mpg123_new(NULL, NULL); mpg123_open_feed(context->mh); mpg123_param(context->mh, MPG123_FORCE_RATE, context->samplerate, 0); @@ -844,7 +843,7 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in *cur_sample = fseek(context->fp, *cur_sample, whence); } - mpg123_close(context->mh); + mpg123_delete(context->mh); context->mh = our_mpg123_new(NULL, NULL); mpg123_open_feed(context->mh); mpg123_param(context->mh, MPG123_FORCE_RATE, context->samplerate, 0);