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)
committerReinhard Tartler <siretart@tauware.de>
Sat, 5 Nov 2011 12:18:32 +0000 (13:18 +0100)
commit81d5ceff04985c71a5bc84f7c88a6487c0afaf61
tree4d10b9e9d7ce4dc79d7c584e006f93a3281bf080
parent86849f097696cf5f54ab9ddf2ec170ad0cdf9b93
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>
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavdevice/alsa-audio-common.c