Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
b1bdb72f by Rémi Denis-Courmont at 2021-11-02T19:03:14+02:00
dbus: improve reasons string (fixes #26219)
- - - - -
1 changed file:
- modules/misc/inhibit/dbus.c
Changes:
=====================================
modules/misc/inhibit/dbus.c
=====================================
@@ -126,8 +126,9 @@ static void Inhibit(vlc_inhibit_t *ih, unsigned flags)
if (flags)
{
const char *app = PACKAGE;
- const char *reason = _("Playing some media.");
-
+ const char *reason = (flags & VLC_INHIBIT_VIDEO) ? N_("Playing video")
+ : N_("Playing audio");
+ reason = vlc_gettext(reason);
assert(sys->cookie == 0);
switch (type)
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/b1bdb72f9de04fe14109144a0f66ad9966d5214b
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/b1bdb72f9de04fe14109144a0f66ad9966d5214b
You're receiving this email because of your account on code.videolan.org.
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits