mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 16:24:13 +00:00
FS-7513: break is safer than continue
when the encoder returns 0, it means no more data will come and we should not try again
This commit is contained in:
1 parent
f6886b05d1
commit
30463bfc1e
2 files changed
+2
-2
No files matched your search
@@ -1595,7 +1595,7 @@ static void write_canvas_image_to_codec_group(conference_obj_t *conference, code
|
||||
switch_assert((encode_status == SWITCH_STATUS_SUCCESS && frame->m) || !frame->m);
|
||||
|
||||
if (frame->datalen == 0) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if (frame->timestamp) {
|
||||
|
||||
Reference in new issue
Block a user