alsa: init stream variable in pa_linux_alsa.c (#584)

Prevent compiler warnings.

Alternative to #567
This commit is contained in:
Phil Burk 2021-06-08 17:19:44 -07:00 • committed by GitHub
commit 8124f82f5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4635,6 +4635,7 @@ PaError PaAlsa_GetStreamInputCard( PaStream* s, int* card )
PaError result = paNoError;
snd_pcm_info_t* pcmInfo;
stream = NULL;
PA_ENSURE( GetAlsaStreamPointer( s, &stream ) );
/* XXX: More descriptive error? */
@ -4654,6 +4655,7 @@ PaError PaAlsa_GetStreamOutputCard( PaStream* s, int* card )
PaError result = paNoError;
snd_pcm_info_t* pcmInfo;
stream = NULL;
PA_ENSURE( GetAlsaStreamPointer( s, &stream ) );
/* XXX: More descriptive error? */