FSCORE-349 add flag to denote if a codec is init or not

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12961 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2009-04-09 17:17:12 +00:00
1 parent 2840f826f0
commit 68b0359cfb
25 files changed
+90 -78

No files matched your search

@@ -4489,7 +4489,7 @@ static int setup_media(conference_member_t *member, conference_obj_t *conference
switch_core_session_reset(member->session, SWITCH_TRUE, SWITCH_FALSE);
if (member->read_codec.implementation) {
if (switch_core_codec_ready(&member->read_codec)) {
switch_core_codec_destroy(&member->read_codec);
}
+1 -1
View File
@@ -242,7 +242,7 @@ SWITCH_STANDARD_APP(bcast_function)
fail:
switch_core_session_set_read_codec(session, NULL);
if (codec.implementation) {
if (switch_core_codec_ready(&codec)) {
switch_core_codec_destroy(&codec);
}
+2 -2
View File
@@ -678,11 +678,11 @@ void process_fax(switch_core_session_t *session, const char *data, application_m
switch_core_session_set_read_codec(session, NULL);
if (read_codec.implementation) {
if (switch_core_codec_ready(&read_codec)) {
switch_core_codec_destroy(&read_codec);
}
if (write_codec.implementation) {
if (switch_core_codec_ready(&write_codec)) {
switch_core_codec_destroy(&write_codec);
}
+2 -2
View File
@@ -346,11 +346,11 @@ SWITCH_STANDARD_APP(play_fsv_function)
switch_core_session_set_read_codec(session, read_codec);
}
if (codec.implementation) {
if (switch_core_codec_ready(&codec)) {
switch_core_codec_destroy(&codec);
}
if (vid_codec.implementation) {
if (switch_core_codec_ready(&vid_codec)) {
switch_core_codec_destroy(&vid_codec);
}