mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
alsasrc: return right number of bytes that we wrote
This commit is contained in:
parent
f37b42b40d
commit
1f601e12dc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue