OSDN Git Service

af_amix: avoid spurious EAGAIN.
authorAnton Khirnov <anton@khirnov.net>
Thu, 5 Jul 2012 19:51:44 +0000 (21:51 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 6 Jul 2012 11:51:58 +0000 (13:51 +0200)
commitb7558ac293f199ac408117618a61567ee1ee7077
tree0c04520b6b5ea0f4fc095e896444fdabb92296a8
parent54bf88e65fe2d87a41abcbee33392725ebe2f0a0
af_amix: avoid spurious EAGAIN.

Input on/off state can change in request_samples(), which can result in
a state where only the first input is active. get_available_samples()
will then return 0, and request_frame() will fail with EAGAIN even
though there is data on the single active input.

Take this into account and check the number of active inputs again after
calling request_samples().
libavfilter/af_amix.c