alsasrc: return right number of bytes that we wrote
This commit is contained in:
parent
f37b42b40d
commit
1f601e12dc
@ -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:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user