alsa: init stream variable in pa_linux_alsa.c (#584)
Prevent compiler warnings. Alternative to #567
This commit is contained in:
parent
8ef5021a9d
commit
8124f82f5c
1 changed files with 2 additions and 0 deletions
|
|
@ -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? */
|
||||
|
|
|
|||
Loading…
Reference in a new issue