From: Wim Taymans Date: Mon, 8 Mar 2010 10:25:01 +0000 (+0100) Subject: alsasrc: return right number of bytes that we wrote X-Git-Tag: 1.19.3~511^2~8716 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f601e12dce470d70e4a50a443a9944939965d1c;p=platform%2Fupstream%2Fgstreamer.git alsasrc: return right number of bytes that we wrote --- diff --git a/ext/alsa/gstalsasrc.c b/ext/alsa/gstalsasrc.c index db9c3a6..d01bdc7 100644 --- a/ext/alsa/gstalsasrc.c +++ b/ext/alsa/gstalsasrc.c @@ -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: {