From 1bd37fd5c8f15c03f6f16cd940a99895c201c90e Mon Sep 17 00:00:00 2001 From: "F. Duncanh" Date: Wed, 21 Jan 2026 18:03:03 -0500 Subject: [PATCH] fix invalid error message with option -vs 0 --- uxplay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uxplay.cpp b/uxplay.cpp index 23ba4b5..e900bdf 100644 --- a/uxplay.cpp +++ b/uxplay.cpp @@ -2117,6 +2117,9 @@ extern "C" void video_reset(void *cls, reset_type_t type) { extern "C" int video_set_codec(void *cls, video_codec_t codec) { bool video_is_h265 = (codec == VIDEO_CODEC_H265); + if (!use_video) { + return 0; + } return video_renderer_choose_codec(false, video_is_h265); }