diff --git a/0001-Fix-the-problem-that-the-description-field-of-pa_als.patch b/0001-Fix-the-problem-that-the-description-field-of-pa_als.patch new file mode 100644 index 0000000..e5e93bc --- /dev/null +++ b/0001-Fix-the-problem-that-the-description-field-of-pa_als.patch @@ -0,0 +1,27 @@ +From 306282bee2b993ebdf83ffb6c731655bb841441d Mon Sep 17 00:00:00 2001 +From: tangjie02 +Date: Tue, 26 Jul 2022 19:52:44 +0800 +Subject: [PATCH] Fix the problem that the description field of pa_alsa_path + struct isn't translated + +Signed-off-by: tangjie02 +--- + src/modules/alsa/alsa-mixer.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c +index 7b755ce..49c3968 100644 +--- a/src/modules/alsa/alsa-mixer.c ++++ b/src/modules/alsa/alsa-mixer.c +@@ -2838,7 +2838,7 @@ static int path_verify(pa_alsa_path *p) { + if (p->device_port_type == PA_DEVICE_PORT_TYPE_UNKNOWN) + p->device_port_type = map->type; + if (!p->description) +- p->description = pa_xstrdup(map->description); ++ p->description = pa_xstrdup(_(map->description)); + } + + if (!p->description) { +-- +2.33.0 + diff --git a/pulseaudio.spec b/pulseaudio.spec index d87eae2..e89385c 100644 --- a/pulseaudio.spec +++ b/pulseaudio.spec @@ -6,7 +6,7 @@ Name: pulseaudio Summary: Improved Linux Sound Server Version: 15.0 -Release: 4 +Release: 5 License: LGPLv2+ URL: https://www.freedesktop.org/wiki/Software/PulseAudio Source0: https://freedesktop.org/software/pulseaudio/releases/pulseaudio-%{version}.tar.xz @@ -14,6 +14,7 @@ Source1: https://freedesktop.org/software/pulseaudio/releases/pulseaudio- Source5: default.pa-for-gdm Patch201: pulseaudio-autostart.patch +Patch1001: 0001-Fix-the-problem-that-the-description-field-of-pa_als.patch BuildRequires: meson BuildRequires: automake libtool gcc-c++ bash-completion @@ -231,6 +232,9 @@ exit 0 %{_datadir}/glib-2.0/schemas/org.freedesktop.pulseaudio.gschema.xml %changelog +* Tue Jul 26 2022 tangjie02 - 15.0-5 +- fix the problem that the description field of pa_alsa_path struct isn't translated + * Mon Jan 17 2022 zhouwenpei - 15.0-4 - remove dependency on GConf2 package