diff options
author | Pierre Ossman <ossman@cendio.se> | 2007-01-04 14:17:57 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2007-01-04 14:17:57 +0000 |
commit | c992ed9c47854338106b38a1d093c4c1bf65e96d (patch) | |
tree | 9ae1fa01b8ae9653d51bc7613f934fe49a7ae8b5 /src | |
parent | 19bd9148c5d16a8363065ca128e06037780337ab (diff) |
Free stream objects when they've been invalidated.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1420 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/padsp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c index c6025417..aa0ec9dd 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -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; |