From cb960a323068d279cb6846bbd3d24790847ea3b0 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 5 Sep 2023 12:00:00 +0200 Subject: [PATCH] compress: fixed async frame API usage broken since 18th Aug '23 (commit 69024468) - missing early return --- src/video_compress.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/video_compress.cpp b/src/video_compress.cpp index 1dfc14978..61a359f2b 100644 --- a/src/video_compress.cpp +++ b/src/video_compress.cpp @@ -6,7 +6,7 @@ * @brief Video compress functions. */ /* - * Copyright (c) 2011-2021 CESNET z.s.p.o. + * Copyright (c) 2011-2023 CESNET z.s.p.o. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -353,7 +353,9 @@ void compress_frame(struct compress_state *proxy, shared_ptr frame) if (s->funcs->compress_frame_async_push_func) { assert(s->funcs->compress_frame_async_pop_func); s->funcs->compress_frame_async_push_func(s->state[0], frame); - } else if (s->funcs->compress_tile_async_push_func) { + return; + } + if (s->funcs->compress_tile_async_push_func) { assert(s->funcs->compress_tile_async_pop_func); if (!frame) { async_poison(s);