Only call finishDriverFunc if there is one. The null plugin doesn't have
one now, and trying to call NULL was causing a segfault at exit. git-svn-id: https://svn.musicpd.org/mpd/trunk@6398 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
693dc37851
commit
bc95aa0e12
@ -242,7 +242,8 @@ void closeAudioOutput(AudioOutput * audioOutput)
|
|||||||
void finishAudioOutput(AudioOutput * audioOutput)
|
void finishAudioOutput(AudioOutput * audioOutput)
|
||||||
{
|
{
|
||||||
closeAudioOutput(audioOutput);
|
closeAudioOutput(audioOutput);
|
||||||
audioOutput->finishDriverFunc(audioOutput);
|
if (audioOutput->finishDriverFunc)
|
||||||
|
audioOutput->finishDriverFunc(audioOutput);
|
||||||
if (audioOutput->convBuffer)
|
if (audioOutput->convBuffer)
|
||||||
free(audioOutput->convBuffer);
|
free(audioOutput->convBuffer);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user