Free stream objects when they've been invalidated.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1420 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2007-01-04 14:17:57 +00:00
parent 19bd9148c5
commit c992ed9c47

View file

@ -913,10 +913,14 @@ static void stream_state_cb(pa_stream *s, void * userdata) {
debug(DEBUG_LEVEL_NORMAL,
__FILE__": pa_stream_connect_playback() failed: %s\n",
pa_strerror(pa_context_errno(i->context)));
pa_stream_unref(i->play_stream);
i->play_stream = NULL;
} else if (s == i->rec_stream) {
debug(DEBUG_LEVEL_NORMAL,
__FILE__": pa_stream_connect_record() failed: %s\n",
pa_strerror(pa_context_errno(i->context)));
pa_stream_unref(i->rec_stream);
i->rec_stream = NULL;
}
fd_info_shutdown(i);
break;