audio: Use g_strdup_printf instead of manual building a string
commit71f2874fc10cfd0c0dbbe560d250d0cafa9fe220
authorFrediano Ziglio <fziglio@redhat.com>
Mon, 25 Feb 2019 15:43:34 +0000 (25 15:43 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 28 Feb 2019 09:26:53 +0000 (28 10:26 +0100)
tree519f9acf444baacf05a398644f58c17df6c08a4c
parent86c7e2f4a93322a76afea5ee6806a83420d1dfea
audio: Use g_strdup_printf instead of manual building a string

Instead of using lot of low level function and manually allocate
the temporary string in audio_process_options use more high
level GLib function. The function is not used in hot path but to
read some initial setting.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Message-id: 20190225154335.11397-1-fziglio@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c