mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 21:54:16 +00:00
FS-7500: refactoring
This commit is contained in:
1 parent
3584da00d0
commit
970064294c
16 files changed
+57
-43
No files matched your search
@@ -710,7 +710,6 @@ static switch_status_t switch_h264_decode(switch_codec_t *codec, switch_frame_t
|
||||
context->img->stride[2] = picture->linesize[2];
|
||||
|
||||
frame->img = context->img;
|
||||
|
||||
}
|
||||
|
||||
av_frame_free(&picture);
|
||||
@@ -718,6 +717,7 @@ static switch_status_t switch_h264_decode(switch_codec_t *codec, switch_frame_t
|
||||
}
|
||||
|
||||
switch_buffer_zero(context->nalu_buffer);
|
||||
//switch_set_flag(frame, SFF_USE_VIDEO_TIMESTAMP);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -2880,7 +2880,7 @@ static void *SWITCH_THREAD_FUNC conference_video_bridge_thread_run(switch_thread
|
||||
switch_channel_ready(channel_a) && switch_channel_ready(channel_b)) {
|
||||
|
||||
if (switch_channel_test_flag(channel_a, CF_VIDEO_REFRESH_REQ)) {
|
||||
switch_core_session_video_reinit(session_b);
|
||||
switch_core_session_request_video_refresh(session_b);
|
||||
switch_channel_clear_flag(channel_a, CF_VIDEO_REFRESH_REQ);
|
||||
}
|
||||
|
||||
@@ -2985,8 +2985,8 @@ static void *SWITCH_THREAD_FUNC conference_video_thread_run(switch_thread_t *thr
|
||||
goto do_continue;
|
||||
}
|
||||
|
||||
//memcpy(buf, vid_frame->packet, vid_frame->packetlen);
|
||||
|
||||
//memcpy(buf, vid_frame->packet, vid_frame->packelen);
|
||||
|
||||
switch_mutex_unlock(conference->mutex);
|
||||
switch_mutex_lock(conference->mutex);
|
||||
want_refresh = 0;
|
||||
@@ -3036,7 +3036,7 @@ static void *SWITCH_THREAD_FUNC conference_video_thread_run(switch_thread_t *thr
|
||||
switch_mutex_unlock(conference->mutex);
|
||||
|
||||
if (want_refresh && session) {
|
||||
switch_core_session_video_reinit(session);
|
||||
switch_core_session_request_video_refresh(session);
|
||||
want_refresh = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ SWITCH_STANDARD_APP(record_fsv_function)
|
||||
|
||||
switch_core_session_get_read_impl(session, &read_impl);
|
||||
switch_channel_answer(channel);
|
||||
switch_core_session_refresh_video(session);
|
||||
switch_core_session_request_video_refresh(session);
|
||||
|
||||
switch_channel_set_variable(channel, SWITCH_PLAYBACK_TERMINATOR_USED, "");
|
||||
|
||||
@@ -283,7 +283,7 @@ SWITCH_STANDARD_APP(play_fsv_function)
|
||||
switch_frame_t *read_frame;
|
||||
switch_codec_implementation_t read_impl = { 0 };
|
||||
|
||||
switch_core_session_refresh_video(session);
|
||||
switch_core_session_request_video_refresh(session);
|
||||
|
||||
switch_core_session_get_read_impl(session, &read_impl);
|
||||
|
||||
@@ -758,7 +758,7 @@ SWITCH_STANDARD_APP(decode_video_function)
|
||||
}
|
||||
|
||||
switch_channel_answer(channel);
|
||||
switch_core_session_refresh_video(session);
|
||||
switch_core_session_request_video_refresh(session);
|
||||
switch_core_media_start_video_function(session, decode_video_thread, &max_pictures);
|
||||
|
||||
switch_ivr_play_file(session, NULL, moh, NULL);
|
||||
|
||||
Reference in new issue
Block a user