[xiph-commits] r11133 - icecast/trunk/libshout/src
brendan at svn.xiph.org
brendan at svn.xiph.org
Thu Apr 13 15:22:26 PDT 2006
Author: brendan
Date: 2006-04-13 15:22:24 -0700 (Thu, 13 Apr 2006)
New Revision: 11133
Modified:
icecast/trunk/libshout/src/shout.c
Log:
Codec setup is the very last step in shout_open, so codec teardown
should only happen when SHOUT_STATE_CONNECTED.
Modified: icecast/trunk/libshout/src/shout.c
===================================================================
--- icecast/trunk/libshout/src/shout.c 2006-04-13 16:19:27 UTC (rev 11132)
+++ icecast/trunk/libshout/src/shout.c 2006-04-13 22:22:24 UTC (rev 11133)
@@ -162,7 +162,7 @@
if (self->state == SHOUT_STATE_UNCONNECTED)
return self->error = SHOUTERR_UNCONNECTED;
- if (self->close)
+ if (self->state == SHOUT_STATE_CONNECTED && self->close)
self->close(self);
sock_close(self->socket);
More information about the commits
mailing list