mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-15 00:34:05 +09:00
rework codec choice between h264 and h265
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user