mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
fix invalid error message with option -vs 0
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user