提交 70684fe1 authored 作者: Anthony Minessale's avatar Anthony Minessale

typo

上级 c7166926
...@@ -1063,10 +1063,6 @@ static switch_status_t vlc_file_read(switch_file_handle_t *handle, void *data, s ...@@ -1063,10 +1063,6 @@ static switch_status_t vlc_file_read(switch_file_handle_t *handle, void *data, s
size_t bytes = *len * sizeof(int16_t) * handle->channels, read; size_t bytes = *len * sizeof(int16_t) * handle->channels, read;
libvlc_state_t status; libvlc_state_t status;
if ((flags & SVR_CHECK)) {
return SWITCH_STATUS_BREAK;
}
if (switch_test_flag(handle, SWITCH_FILE_FLAG_VIDEO)) { if (switch_test_flag(handle, SWITCH_FILE_FLAG_VIDEO)) {
return vlc_file_av_read(handle, data, len); return vlc_file_av_read(handle, data, len);
} }
...@@ -1136,6 +1132,10 @@ static switch_status_t vlc_file_read_video(switch_file_handle_t *handle, switch_ ...@@ -1136,6 +1132,10 @@ static switch_status_t vlc_file_read_video(switch_file_handle_t *handle, switch_
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }
if ((flags & SVR_CHECK)) {
return SWITCH_STATUS_BREAK;
}
while((flags & SVR_FLUSH) && switch_queue_size(vcontext->video_queue) > 1) { while((flags & SVR_FLUSH) && switch_queue_size(vcontext->video_queue) > 1) {
if (switch_queue_trypop(vcontext->video_queue, &pop) == SWITCH_STATUS_SUCCESS) { if (switch_queue_trypop(vcontext->video_queue, &pop) == SWITCH_STATUS_SUCCESS) {
switch_image_t *img = (switch_image_t *) pop; switch_image_t *img = (switch_image_t *) pop;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论