From 2affde197a4de4079bf2a7fadbd8d5f39148d89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20B=C3=A9rub=C3=A9?= Date: Tue, 30 Jul 2024 14:36:04 -0400 Subject: [PATCH] Drop the request for an IDR frame if no video encoder is active --- src/media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media.c b/src/media.c index c09cc59..131da2a 100644 --- a/src/media.c +++ b/src/media.c @@ -149,7 +149,7 @@ void request_idr(void) { index = i; break; } - if (index != 1) switch (plat) { + if (index != -1) switch (plat) { #if defined(__arm__) case HAL_PLATFORM_GM: gm_video_request_idr(index); break; case HAL_PLATFORM_I6: i6_video_request_idr(index); break;