alsasrc: return right number of bytes that we wrote

This commit is contained in:
Wim Taymans 2010-03-08 11:25:01 +01:00
parent f37b42b40d
commit 1f601e12dc

View file

@ -810,7 +810,7 @@ gst_alsasrc_read (GstAudioSrc * asrc, gpointer data, guint length)
}
GST_ALSA_SRC_UNLOCK (asrc);
return length - cptr;
return length - (cptr * alsa->bytes_per_sample);
read_error:
{