!45 修复pa_alsa_path中的description字段未翻译问题

From: @tangjie02 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2022-07-27 02:23:16 +00:00 committed by Gitee
commit a508a8f5c2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From 306282bee2b993ebdf83ffb6c731655bb841441d Mon Sep 17 00:00:00 2001
From: tangjie02 <tangjie02@kylinsec.com.cn>
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 <tangjie02@kylinsec.com.cn>
---
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

View File

@ -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 <tangjie02@kylinsec.com> - 15.0-5
- fix the problem that the description field of pa_alsa_path struct isn't translated
* Mon Jan 17 2022 zhouwenpei <zhouwenpei1@huawei.com> - 15.0-4
- remove dependency on GConf2 package