From 4fdb843c200816136c9cb51f8b755174609f8c44 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 16 Sep 2024 20:08:20 +0100 Subject: [PATCH] end gracefully after writing frame --- src/oxframe.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/oxframe.c b/src/oxframe.c index a8d747a..7b72a8f 100644 --- a/src/oxframe.c +++ b/src/oxframe.c @@ -116,13 +116,6 @@ void write_image_file(OggPlayRGBChannels *data, oxstate * state) { imlib_image_set_format("jpg"); imlib_save_image(state->output); imlib_free_image_and_decache(); - - imlib_context_set_image(frame); - imlib_free_image_and_decache(); - if (state->image_width > 0) { - imlib_context_set_image(image); - imlib_free_image_and_decache(); - } } void write_frame (OggPlay * player, int track_num, @@ -434,6 +427,7 @@ int extract_frame_webm(oxstate *state) { OggPlayRGBChannels to; done = 1; + i = tracks; from.y_width = img->d_w; from.y_height = img->d_h;