Repository: guacamole-server Updated Branches: refs/heads/master 1cf86e12a -> 9ed3baf00
GUACAMOLE-482: Report video encoding failure if frame flush fails. Project: http://git-wip-us.apache.org/repos/asf/guacamole-server/repo Commit: http://git-wip-us.apache.org/repos/asf/guacamole-server/commit/b0c14bd5 Tree: http://git-wip-us.apache.org/repos/asf/guacamole-server/tree/b0c14bd5 Diff: http://git-wip-us.apache.org/repos/asf/guacamole-server/diff/b0c14bd5 Branch: refs/heads/master Commit: b0c14bd59ff68a63071699afa6e3c8e22dd86dba Parents: 1cf86e1 Author: Michael Jumper <mjum...@apache.org> Authored: Tue Feb 6 21:09:39 2018 -0800 Committer: Michael Jumper <mjum...@apache.org> Committed: Tue Feb 6 21:18:39 2018 -0800 ---------------------------------------------------------------------- src/guacenc/video.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/guacamole-server/blob/b0c14bd5/src/guacenc/video.c ---------------------------------------------------------------------- diff --git a/src/guacenc/video.c b/src/guacenc/video.c index 4ca84f6..4592a2b 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); }