GUACAMOLE-482: Report video encoding failure if frame flush fails.

This commit is contained in:
Michael Jumper 2018-02-06 21:09:39 -08:00
parent 1cf86e12a1
commit b0c14bd59f

View File

@ -228,7 +228,11 @@ int guacenc_video_advance_timeline(guacenc_video* video,
/* Flush frames to bring timeline in sync, duplicating if necessary */
do {
guacenc_video_flush_frame(video);
if (guacenc_video_flush_frame(video)) {
guacenc_log(GUAC_LOG_ERROR, "Unable to flush frame to video "
"stream.");
return 1;
}
} while (--elapsed != 0);
}