提交 b84dcd0d authored 作者: Anthony Minessale's avatar Anthony Minessale

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
上级 d192f195
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论