alsa: fallback to buffer_size/4 for period_size.
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 22 Jun 2011 19:33:56 +0000 (15:33 -0400)
committerAnton Khirnov <anton@khirnov.net>
Sun, 11 Sep 2011 10:31:36 +0000 (12:31 +0200)
commit9bf76932e5e4dffd5199084cab810b6c8203fce1
treeb44bf3fd7be7f1c2a02a897a5499fda4fcf308d7
parent91f9c7917c830982f9122dc16d1d865cf82d8382
alsa: fallback to buffer_size/4 for period_size.

buffer_size/4 is the value used by aplay. This fixes output to null
devices, e.g. writing ALSA output to a file.
(cherry picked from commit 8bfd7f6a475225a0595bf657f8b99a8fffb461e4)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavdevice/alsa-audio-common.c