alsasink: fix rate match message mistaking error code for sample rate

This commit is contained in:
Vincent Penquerc'h 2012-01-16 11:40:47 +00:00
parent e60027c795
commit 361f2b169c

View file

@ -510,7 +510,7 @@ no_rate:
rate_match: rate_match:
{ {
GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, (NULL), GST_ELEMENT_ERROR (alsa, RESOURCE, SETTINGS, (NULL),
("Rate doesn't match (requested %iHz, get %iHz)", alsa->rate, err)); ("Rate doesn't match (requested %iHz, get %iHz)", alsa->rate, rrate));
snd_pcm_hw_params_free (params); snd_pcm_hw_params_free (params);
return -EINVAL; return -EINVAL;
} }