mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
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:
parent
19bd9148c5
commit
c992ed9c47
1 changed files with 4 additions and 0 deletions
|
|
@ -913,10 +913,14 @@ static void stream_state_cb(pa_stream *s, void * userdata) {
|
||||||
debug(DEBUG_LEVEL_NORMAL,
|
debug(DEBUG_LEVEL_NORMAL,
|
||||||
__FILE__": pa_stream_connect_playback() failed: %s\n",
|
__FILE__": pa_stream_connect_playback() failed: %s\n",
|
||||||
pa_strerror(pa_context_errno(i->context)));
|
pa_strerror(pa_context_errno(i->context)));
|
||||||
|
pa_stream_unref(i->play_stream);
|
||||||
|
i->play_stream = NULL;
|
||||||
} else if (s == i->rec_stream) {
|
} else if (s == i->rec_stream) {
|
||||||
debug(DEBUG_LEVEL_NORMAL,
|
debug(DEBUG_LEVEL_NORMAL,
|
||||||
__FILE__": pa_stream_connect_record() failed: %s\n",
|
__FILE__": pa_stream_connect_record() failed: %s\n",
|
||||||
pa_strerror(pa_context_errno(i->context)));
|
pa_strerror(pa_context_errno(i->context)));
|
||||||
|
pa_stream_unref(i->rec_stream);
|
||||||
|
i->rec_stream = NULL;
|
||||||
}
|
}
|
||||||
fd_info_shutdown(i);
|
fd_info_shutdown(i);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue