mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
make codec pointers more reliable
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8958 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -105,7 +105,9 @@ struct switch_core_session {
|
||||
|
||||
switch_io_event_hooks_t event_hooks;
|
||||
switch_codec_t *read_codec;
|
||||
switch_codec_t *real_read_codec;
|
||||
switch_codec_t *write_codec;
|
||||
switch_codec_t *real_write_codec;
|
||||
switch_codec_t *video_read_codec;
|
||||
switch_codec_t *video_write_codec;
|
||||
|
||||
|
||||
@@ -1129,6 +1129,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_read_codec(_In_ switch_c
|
||||
*/
|
||||
SWITCH_DECLARE(switch_codec_t *) switch_core_session_get_read_codec(_In_ switch_core_session_t *session);
|
||||
|
||||
/*!
|
||||
\brief Retrieve the effevtive read codec from a given session
|
||||
\param session session to retrieve from
|
||||
\return a pointer to the codec
|
||||
*/
|
||||
SWITCH_DECLARE(switch_codec_t *) switch_core_session_get_effective_read_codec(_In_ switch_core_session_t *session);
|
||||
|
||||
/*!
|
||||
\brief Assign the write codec to a given session
|
||||
\param session session to add the codec to
|
||||
@@ -1144,6 +1151,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_write_codec(_In_ switch_
|
||||
*/
|
||||
SWITCH_DECLARE(switch_codec_t *) switch_core_session_get_write_codec(_In_ switch_core_session_t *session);
|
||||
|
||||
/*!
|
||||
\brief Retrieve the effevtive write codec from a given session
|
||||
\param session session to retrieve from
|
||||
\return a pointer to the codec
|
||||
*/
|
||||
SWITCH_DECLARE(switch_codec_t *) switch_core_session_get_effective_write_codec(_In_ switch_core_session_t *session);
|
||||
|
||||
/*!
|
||||
\brief Assign the video_read codec to a given session
|
||||
\param session session to add the codec to
|
||||
|
||||
Reference in New Issue
Block a user