NxPlayer needs to set curbyte field to zero before enqueuing a buffer. Otherwise, it looks like beginning of the buffer has already been consumed

This commit is contained in:
Gregory Nutt 2014-07-27 19:49:01 -06:00
parent ca5200a7d0
commit 38c095bd17

View File

@ -1455,8 +1455,6 @@ static int pcm_enqueuebuffer(FAR struct audio_lowerhalf_s *dev,
lower = priv->lower;
DEBUGASSERT(lower && lower->ops->enqueuebuffer && lower->ops->configure);
apb->curbyte = 0;
/* Are we streaming yet? */
if (priv->streaming)