[FFmpeg-devel] [PATCH 2/5] avdevice/alsa_dec: make sure we have enough data in non-blocking mode

Nicolas George george at nsup.org
Sun Feb 28 15:46:13 EET 2021


Marton Balint (12021-02-28):
> Robust how? For non-blocking mode that would mean you have to keep the read
> data in the context if you read less than period size. Doable, but I wanted
> to avoid it.

That is exactly what I am suggesting. It does not rely on less tested
functions like snd_pcm_avail() (I have observed bugs with this kind of
functions and some of the infrastructure plugins), and it does not
require starting the PCM manually at seemingly random places in the
code.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210228/2eb7a2bd/attachment.sig>


More information about the ffmpeg-devel mailing list