it's suprising what 195 lines of code can do

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7475 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-02-01 21:22:27 +00:00
parent 1d5a083c39
commit af40b99b80
3 changed files with 72 additions and 11 deletions

View File

@@ -47,9 +47,9 @@ static void *SWITCH_THREAD_FUNC echo_video_thread(switch_thread_t *thread, void
switch_frame_t *read_frame;
eh->up = 1;
while(switch_channel_ready(channel) && switch_channel_get_state(channel) == CS_LOOPBACK) {
while(switch_channel_ready(channel)) {
status = switch_core_session_read_video_frame(session, &read_frame, -1, 0);
if (!SWITCH_READ_ACCEPTABLE(status)) {
break;
}