From b0c14bd59ff68a63071699afa6e3c8e22dd86dba Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 6 Feb 2018 21:09:39 -0800 Subject: [PATCH] GUACAMOLE-482: Report video encoding failure if frame flush fails. --- src/guacenc/video.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/guacenc/video.c b/src/guacenc/video.c index 4ca84f69..4592a2bb 100644 --- a/src/guacenc/video.c +++ b/src/guacenc/video.c @@ -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); }