Skip to content

Commit

Permalink
SDL2 consumer resize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jliljebl committed Oct 24, 2024
1 parent 48bd013 commit 46eeaf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/sdl2/consumer_sdl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ mlt_consumer consumer_sdl2_init(mlt_profile profile,

// Default scrub audio
mlt_properties_set_int(self->properties, "scrub_audio", 1);

// Ensure we don't join on a non-running object
self->joined = 1;

Expand Down Expand Up @@ -517,6 +517,7 @@ static int setup_sdl_video(consumer_sdl self)

if (window_id) {
self->sdl_window = SDL_CreateWindowFrom((void *) window_id);
SDL_SetWindowResizable(self->sdl_window, SDL_TRUE);
} else {
self->sdl_window = SDL_CreateWindow("MLT",
SDL_WINDOWPOS_UNDEFINED,
Expand Down

0 comments on commit 46eeaf1

Please sign in to comment.