mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-11 22:04:13 +00:00
reset codecs after media bugs
This commit is contained in:
1 parent
ba46088e68
commit
27fc3518bd
5 files changed
+69
-3
No files matched your search
@@ -455,6 +455,17 @@ SWITCH_DECLARE(switch_codec_t *) switch_core_session_get_video_write_codec(switc
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_codec_reset(switch_codec_t *codec)
|
||||
{
|
||||
switch_assert(codec != NULL);
|
||||
|
||||
codec->implementation->destroy(codec);
|
||||
codec->implementation->init(codec, codec->flags, NULL);
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, switch_codec_t *new_codec, switch_memory_pool_t *pool)
|
||||
{
|
||||
switch_status_t status;
|
||||
|
||||
Reference in new issue
Block a user