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
@ -476,7 +476,8 @@ no_channels:
|
|||||||
g_strdup_printf (_
|
g_strdup_printf (_
|
||||||
("Could not open device for playback in %d-channel mode."),
|
("Could not open device for playback in %d-channel mode."),
|
||||||
alsa->channels);
|
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);
|
g_free (msg);
|
||||||
snd_pcm_hw_params_free (params);
|
snd_pcm_hw_params_free (params);
|
||||||
return err;
|
return err;
|
||||||
|
@ -413,7 +413,8 @@ no_channels:
|
|||||||
g_strdup_printf (_
|
g_strdup_printf (_
|
||||||
("Could not open device for recording in %d-channel mode"),
|
("Could not open device for recording in %d-channel mode"),
|
||||||
alsa->channels);
|
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);
|
g_free (msg);
|
||||||
snd_pcm_hw_params_free (params);
|
snd_pcm_hw_params_free (params);
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user