rework codec choice between h264 and h265

This commit is contained in:
F. Duncanh
2025-02-17 09:24:47 -05:00
parent 4260d052b6
commit 79ff1411d8
5 changed files with 85 additions and 53 deletions

View File

@@ -1579,11 +1579,9 @@ extern "C" void video_reset(void *cls) {
reset_loop = true;
}
extern "C" void video_set_codec(void *cls, video_codec_t codec) {
if (use_video) {
bool video_is_h265 = (codec == VIDEO_CODEC_H265);
video_renderer_choose_codec(video_is_h265);
}
extern "C" int video_set_codec(void *cls, video_codec_t codec) {
bool video_is_h265 = (codec == VIDEO_CODEC_H265);
return video_renderer_choose_codec(video_is_h265);
}
extern "C" void display_pin(void *cls, char *pin) {