mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +00:00
FS-10131: [freeswitch-core] Incorrect video decode flags in some places #resolve
This commit is contained in:
1 parent
42499edf26
commit
de8c37975b
7 files changed
+24
-12
No files matched your search
@@ -844,7 +844,7 @@ SWITCH_STANDARD_APP(record_av_function)
|
||||
goto done;
|
||||
}
|
||||
|
||||
switch_channel_set_flag(channel, CF_VIDEO_DECODED_READ);
|
||||
switch_channel_set_flag_recursive(channel, CF_VIDEO_DECODED_READ);
|
||||
switch_core_media_get_vid_params(session, &vid_params);
|
||||
switch_channel_set_flag(channel, CF_VIDEO_ECHO);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "video size: %dx%d\n", vid_params.width, vid_params.height);
|
||||
@@ -1120,6 +1120,8 @@ SWITCH_STANDARD_APP(record_av_function)
|
||||
|
||||
end:
|
||||
|
||||
switch_channel_clear_flag_recursive(channel, CF_VIDEO_DECODED_READ);
|
||||
|
||||
if (fc) {
|
||||
if (has_video) close_stream(fc, &video_st);
|
||||
if (has_audio) close_stream(fc, &audio_st);
|
||||
|
||||
Reference in new issue
Block a user