mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 01:54:11 +00:00
alsa: don't pass non-constant strings as printf format strings
Fixes 'format not a string literal and no format arguments' compiler warning when compiling with -DGST_DISABLE_PRINTF_EXTENSION.
This commit is contained in:
parent
0ebbb98bfa
commit
930f72c6b0
2 changed files with 4 additions and 2 deletions
ext/alsa
|
@ -476,7 +476,8 @@ no_channels:
|
|||
g_strdup_printf (_
|
||||
("Could not open device for playback in %d-channel mode."),
|
||||
alsa->channels);
|
||||
GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, (msg), (snd_strerror (err)));
|
||||
GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, ("%s", msg),
|
||||
("%s", snd_strerror (err)));
|
||||
g_free (msg);
|
||||
snd_pcm_hw_params_free (params);
|
||||
return err;
|
||||
|
|
|
@ -413,7 +413,8 @@ no_channels:
|
|||
g_strdup_printf (_
|
||||
("Could not open device for recording in %d-channel mode"),
|
||||
alsa->channels);
|
||||
GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, (msg), (snd_strerror (err)));
|
||||
GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, ("%s", msg),
|
||||
("%s", snd_strerror (err)));
|
||||
g_free (msg);
|
||||
snd_pcm_hw_params_free (params);
|
||||
return err;
|
||||
|
|
Loading…
Reference in a new issue