mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
hdajackretask: Fix build with gcc7
The old compiler doesn't allow a variable declaration inside switch
block.
Fixes: d349d20c12 ("hdajackretask: add support for pipewire stop/start")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
cb85b257b4
commit
54b5913cd5
1 changed files with 3 additions and 1 deletions
|
|
@ -213,9 +213,11 @@ cleanup:
|
||||||
static gboolean restore_soundserver(struct soundserver* state, GError** err)
|
static gboolean restore_soundserver(struct soundserver* state, GError** err)
|
||||||
{
|
{
|
||||||
gboolean ok = FALSE;
|
gboolean ok = FALSE;
|
||||||
|
gchar* clientconf;
|
||||||
|
|
||||||
switch (state->type) {
|
switch (state->type) {
|
||||||
case PULSEAUDIO:
|
case PULSEAUDIO:
|
||||||
gchar* clientconf = get_pulseaudio_client_conf();
|
clientconf = get_pulseaudio_client_conf();
|
||||||
if (state->was_killed && g_unlink(clientconf) != 0) {
|
if (state->was_killed && g_unlink(clientconf) != 0) {
|
||||||
g_set_error(err, quark(), 0, "%s", g_strerror(errno));
|
g_set_error(err, quark(), 0, "%s", g_strerror(errno));
|
||||||
g_free(clientconf);
|
g_free(clientconf);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue