From ae26a39e0b471693f856b3aea1c2c4c359e16283 Mon Sep 17 00:00:00 2001 From: tangjie02 Date: Tue, 26 Jul 2022 20:20:17 +0800 Subject: [PATCH] fix the problem that the description field of pa_alsa_path struct isn't translated Signed-off-by: tangjie02 --- ...that-the-description-field-of-pa_als.patch | 32 +++++++++++++++++++ pulseaudio.spec | 6 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 0001-Fix-the-problem-that-the-description-field-of-pa_als.patch 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..e539c59 --- /dev/null +++ b/0001-Fix-the-problem-that-the-description-field-of-pa_als.patch @@ -0,0 +1,32 @@ +From e1723f524e548848f2574832f4a69482dab0e169 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 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +- 修复pa_alsa_path中的description字段未翻译问题 + +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 -- Gitee