projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19bd914
)
Free stream objects when they've been invalidated.
author
Pierre Ossman
<ossman@cendio.se>
Thu, 4 Jan 2007 14:17:57 +0000
(14:17 +0000)
committer
Pierre Ossman
<ossman@cendio.se>
Thu, 4 Jan 2007 14:17:57 +0000
(14:17 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1420
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/utils/padsp.c
patch
|
blob
|
history
diff --git
a/src/utils/padsp.c
b/src/utils/padsp.c
index
c602541
..
aa0ec9d
100644
(file)
--- 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;