Skip to content
Extraits de code Groupes Projets
Valider 7158e7c8 rédigé par Elliu's avatar Elliu
Parcourir les fichiers

Typo

parent f2925abc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #2636 réussi
......@@ -108,7 +108,7 @@ mod_set_paused(va_list *va)
struct module_qt_window_s **win =
reinterpret_cast<struct module_qt_window_s **>(va_arg(copy, void **));
const int state = va_arg(copy, int);
const bool ret = ___module_qt_window_set_paussed(*win, state);
const bool ret = ___module_qt_window_set_paused(*win, state);
va_end(copy);
return !ret;
}
......
......@@ -53,7 +53,7 @@ struct module_sdl2_window {
static bool module_sdl2_get_elapsed(struct module_sdl2_window *, int *);
static bool module_sdl2_get_duration(struct module_sdl2_window *, int *);
static bool module_sdl2_set_paussed(struct module_sdl2_window *, int);
static bool module_sdl2_set_paused(struct module_sdl2_window *, int);
static bool module_sdl2_set_volume(struct module_sdl2_window *, int);
static bool module_sdl2_set_position(struct module_sdl2_window *, int);
static bool module_sdl2_load_file(struct module_sdl2_window *, const char *);
......@@ -199,7 +199,7 @@ mod_set_paused(va_list *va)
va_copy(copy, *va);
struct module_sdl2_window **win = (struct module_sdl2_window **)va_arg(copy, void **);
const int state = va_arg(copy, int);
const bool ret = module_sdl2_set_paussed(*win, state);
const bool ret = module_sdl2_set_paused(*win, state);
va_end(copy);
return !ret;
}
......@@ -562,7 +562,7 @@ module_sdl2_load_file(struct module_sdl2_window *win, const char *filepath)
}
static bool
module_sdl2_set_paussed(struct module_sdl2_window *win, int paused)
module_sdl2_set_paused(struct module_sdl2_window *win, int paused)
{
RETURN_UNLESS(win && win->window, "Invalid arguments", false);
if (((!paused) && win->state == STATE_PAUSE) || (win->state == STATE_PLAY && paused)) {
......
......@@ -251,7 +251,7 @@ MpvWidget::get_duration(int UNUSED *dur_sec)
}
bool
MpvWidget::set_paussed(int paused)
MpvWidget::set_paused(int paused)
{
const char *cmd[] = {"set", "pause", paused == 1 ? "yes" : "no", nullptr};
mpv_command_async(mpv, 0, cmd);
......
......@@ -45,7 +45,7 @@ protected:
public:
bool get_elapsed(int *);
bool get_duration(int *);
bool set_paussed(int);
bool set_paused(int);
bool set_volume(int);
bool set_position(int);
bool load_file(const char *);
......
......@@ -33,9 +33,9 @@ ___module_qt_window_get_duration(struct module_qt_window_s *win, int *dur_sec)
}
bool
___module_qt_window_set_paussed(struct module_qt_window_s *win, int paused)
___module_qt_window_set_paused(struct module_qt_window_s *win, int paused)
{
return win->mpv_widget->set_paussed(paused);
return win->mpv_widget->set_paused(paused);
}
bool
......
......@@ -7,7 +7,7 @@ void *___create_mpv_widget(struct poller_thread_arg *arg);
bool ___module_qt_window_get_elapsed(struct module_qt_window_s *, int *);
bool ___module_qt_window_get_duration(struct module_qt_window_s *, int *);
bool ___module_qt_window_set_paussed(struct module_qt_window_s *, int);
bool ___module_qt_window_set_paused(struct module_qt_window_s *, int);
bool ___module_qt_window_set_volume(struct module_qt_window_s *, int);
bool ___module_qt_window_set_position(struct module_qt_window_s *, int);
bool ___module_qt_window_load_file(struct module_qt_window_s *, const char *);
......
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