mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-08-12 04:54:33 +00:00
fftools/ffplay: remove SDL_AUDIO_ALSA_SET_BUFFER_SIZE
SDL_AUDIO_ALSA_SET_BUFFER_SIZE was removed in SDL 2.0.9: https://github.com/libsdl-org/SDL/commit/c591429542f429aac4979fb6ae9bbe024491a1f Signed-off-by: Hunter Kvalevog <hunter@kvog.sh>
This commit is contained in:
committed by
James Almer
parent
2e9dfa0214
commit
6d72600a30
@@ -3883,12 +3883,6 @@ int main(int argc, char **argv)
|
||||
flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER;
|
||||
if (audio_disable)
|
||||
flags &= ~SDL_INIT_AUDIO;
|
||||
else {
|
||||
/* Try to work around an occasional ALSA buffer underflow issue when the
|
||||
* period size is NPOT due to ALSA resampling by forcing the buffer size. */
|
||||
if (!SDL_getenv("SDL_AUDIO_ALSA_SET_BUFFER_SIZE"))
|
||||
SDL_setenv("SDL_AUDIO_ALSA_SET_BUFFER_SIZE","1", 1);
|
||||
}
|
||||
if (display_disable)
|
||||
flags &= ~SDL_INIT_VIDEO;
|
||||
if (SDL_Init (flags)) {
|
||||
|
||||
Reference in New Issue
Block a user