debugging tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16692 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d914adb78c
commit
995fd35ada
|
@ -536,7 +536,8 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(_In_ switch_channe
|
|||
|
||||
#define switch_channel_stop_broadcast(_channel) for(;;) {if (switch_channel_test_flag(_channel, CF_BROADCAST)) {switch_channel_set_flag(_channel, CF_STOP_BROADCAST); switch_channel_set_flag(_channel, CF_BREAK); } break;}
|
||||
|
||||
SWITCH_DECLARE(void) switch_channel_audio_sync(switch_channel_t *channel);
|
||||
SWITCH_DECLARE(void) switch_channel_perform_audio_sync(switch_channel_t *channel, const char *file, const char *func, int line);
|
||||
#define switch_channel_audio_sync(_c) switch_channel_perform_audio_sync(_c, __FILE__, __SWITCH_FUNC__, __LINE__)
|
||||
|
||||
SWITCH_DECLARE(void) switch_channel_set_private_flag(switch_channel_t *channel, uint32_t flags);
|
||||
SWITCH_DECLARE(void) switch_channel_clear_private_flag(switch_channel_t *channel, uint32_t flags);
|
||||
|
|
|
@ -173,12 +173,15 @@ SWITCH_DECLARE(switch_call_cause_t) switch_channel_get_cause(switch_channel_t *c
|
|||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(void) switch_channel_audio_sync(switch_channel_t *channel)
|
||||
SWITCH_DECLARE(void) switch_channel_perform_audio_sync(switch_channel_t *channel, const char *file, const char *func, int line)
|
||||
{
|
||||
if (switch_channel_media_ready(channel)) {
|
||||
switch_core_session_message_t msg = { 0 };
|
||||
msg.message_id = SWITCH_MESSAGE_INDICATE_AUDIO_SYNC;
|
||||
msg.from = channel->name;
|
||||
msg._file = file;
|
||||
msg._func = func;
|
||||
msg._line = line;
|
||||
switch_core_session_receive_message(channel->session, &msg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue