Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 3a59612c rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Clean the code again

parent c9dfacfa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!57Resolve "SDL2 module"
......@@ -166,7 +166,7 @@ module_sdl2_new(struct lkt_win *const win)
.get_proc_address = get_proc_address_mpv,
}
},
{
{ // Can't use mpv_command with that thing, should change to mpv_command_async
MPV_RENDER_PARAM_ADVANCED_CONTROL, &(int)
{
1
......@@ -179,28 +179,6 @@ module_sdl2_new(struct lkt_win *const win)
if (init_mpv_gl__(sdl2->mpv, &sdl2->mpv_gl, params))
goto error;
if (sdl2->mpv == NULL && init_mpv__(&sdl2->mpv))
goto error;
if (sdl2->mpv_gl == NULL) {
mpv_render_param params[] = { { MPV_RENDER_PARAM_API_TYPE, MPV_RENDER_API_TYPE_OPENGL }, {
MPV_RENDER_PARAM_OPENGL_INIT_PARAMS, &(mpv_opengl_init_params)
{
.get_proc_address = get_proc_address_mpv,
}
},
{
MPV_RENDER_PARAM_ADVANCED_CONTROL, &(int)
{
1
}
},
{0}
};
if (init_mpv_gl__(sdl2->mpv, &sdl2->mpv_gl, params))
goto error;
}
SDL_SetWindowTitle(sdl2->window, "Lektord");
SDL_DisableScreenSaver();
win->window = sdl2;
......
......@@ -63,7 +63,7 @@ lmpv_prepare(void)
}
if ((status = mpv_set_option_string(ctx, "profile", "low-latency")) < 0) {
fprintf(stderr, " ! lmpv_new: failed to set demuxer-max-bytes: %s\n",
fprintf(stderr, " ! lmpv_new: failed to set low-latency: %s\n",
mpv_error_string(status));
return NULL;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter