obs-ffmpeg: Don't preload media frames if set to pause on end
Preloading is designed to overwrite the current internal render texture of the source so it'll be ready to play the first frame right when the source is first displayed. However, When the media source is set to pause on the last frame, it keeps that current render texture visible, so preloading it with the first frame will essentially overwrite the current render, causing it to inadvertently show and pause on the first frame rather than the last frame. So instead, just disable preloading when the user has it set to pause on the last frame.master
parent
d5adfff978
commit
054148a0af
|
@ -218,6 +218,7 @@ static void get_frame(void *opaque, struct obs_source_frame *f)
|
|||
static void preload_frame(void *opaque, struct obs_source_frame *f)
|
||||
{
|
||||
struct ffmpeg_source *s = opaque;
|
||||
if (s->is_clear_on_media_end || s->is_looping)
|
||||
obs_source_preload_video(s->source, f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue