From b24df2d19b8cc6092bd1cb14b79277040a3d6487 Mon Sep 17 00:00:00 2001 From: SimonDanisch Date: Mon, 18 Dec 2023 11:31:05 +0100 Subject: [PATCH] pass through update --- src/ffmpeg-util.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ffmpeg-util.jl b/src/ffmpeg-util.jl index a3f5eed6fc1..4306ead687c 100644 --- a/src/ffmpeg-util.jl +++ b/src/ffmpeg-util.jl @@ -214,13 +214,13 @@ $(Base.doc(VideoStreamOptions)) """ function VideoStream(fig::FigureLike; format="mp4", framerate=24, compression=nothing, profile=nothing, pixel_format=nothing, loop=nothing, - loglevel="quiet", visible=false, connect=false, backend=current_backend(), + loglevel="quiet", visible=false, update=true, backend=current_backend(), screen_config...) dir = mktempdir() path = joinpath(dir, "$(gensym(:video)).$(format)") scene = get_scene(fig) - update_state_before_display!(fig) + update && update_state_before_display!(fig) config = Dict{Symbol,Any}(screen_config) get!(config, :visible, visible) get!(config, :start_renderloop, false)