Skip to content

Commit

Permalink
pass update through record/Record/VideoStream (#3482)
Browse files Browse the repository at this point in the history
pass through update
  • Loading branch information
SimonDanisch authored Dec 18, 2023
1 parent 9a6059a commit 61bc20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ffmpeg-util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61bc20a

Please sign in to comment.