summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-03-15 10:11:00 +0000
committerBenny Prijono <bennylp@teluu.com>2007-03-15 10:11:00 +0000
commit304e0612ac6b51186ab60a9fd3f695cb2dd5260e (patch)
tree58e3f8237b8daac8d8ec1c632fbe22036045e1bb
parent088fb109a119a4ed9515cb729aa2f3c98f6e9afa (diff)
Fixed ticket #174: GSM codec factory does not shutdown properly causing it to fail on next pjsua_init (thanks Binu K S)
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/pjproject-0.5-stable@1063 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/src/pjmedia-codec/gsm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia-codec/gsm.c b/pjmedia/src/pjmedia-codec/gsm.c
index 7018b46c..2322a68d 100644
--- a/pjmedia/src/pjmedia-codec/gsm.c
+++ b/pjmedia/src/pjmedia-codec/gsm.c
@@ -190,11 +190,15 @@ PJ_DEF(pj_status_t) pjmedia_codec_gsm_deinit(void)
return PJ_SUCCESS;
/* We don't want to deinit if there's outstanding codec. */
+ /* This is silly, as we'll always have codec in the list if
+ we ever allocate a codec! A better behavior maybe is to
+ deallocate all codecs in the list.
pj_mutex_lock(gsm_codec_factory.mutex);
if (!pj_list_empty(&gsm_codec_factory.codec_list)) {
pj_mutex_unlock(gsm_codec_factory.mutex);
return PJ_EBUSY;
}
+ */
/* Get the codec manager. */
codec_mgr = pjmedia_endpt_get_codec_mgr(gsm_codec_factory.endpt);