diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-26 23:44:08 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-26 23:44:08 +0000 |
commit | e76d60c53d666cc42408bcea5e4060ac173798dd (patch) | |
tree | a2b395870a898ad7bdfe1f49a7717499f40e1386 /src/xine-engine/broadcaster.c | |
parent | 23176d5f3aaafdf90795fb847a064d0bb1b8d198 (diff) | |
download | xine-lib-e76d60c53d666cc42408bcea5e4060ac173798dd.tar.gz xine-lib-e76d60c53d666cc42408bcea5e4060ac173798dd.tar.bz2 |
xprintf clean pass. xprintf now log into new XINE_LOG_TRACE log buffer. scratch buffer enhancement (thanks Thibaut for the malloc tips), enlarge log buffer from 25 lines (very useless), to 150 (better).
CVS patchset: 5801
CVS date: 2003/11/26 23:44:08
Diffstat (limited to 'src/xine-engine/broadcaster.c')
-rw-r--r-- | src/xine-engine/broadcaster.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/xine-engine/broadcaster.c b/src/xine-engine/broadcaster.c index e5b4d8ffd..41f8e24e6 100644 --- a/src/xine-engine/broadcaster.c +++ b/src/xine-engine/broadcaster.c @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: broadcaster.c,v 1.3 2003/11/11 18:45:00 f1rmb Exp $ + * $Id: broadcaster.c,v 1.4 2003/11/26 23:44:10 f1rmb Exp $ * * broadcaster.c - xine network broadcaster * @@ -164,8 +164,7 @@ static void broadcaster_data_write(broadcaster_t *this, char *buf, int len) { /* in case of failure remove from list */ if( sock_data_write(*psock, buf, len) < 0 ) { - if (this->stream->xine->verbosity >= XINE_VERBOSITY_LOG) - printf("broadcaster: closing socket %d\n", *psock); + xprintf(this->stream->xine, XINE_VERBOSITY_LOG, "broadcaster: closing socket %d\n", *psock); close(*psock); free(psock); if( this->connections->cur->next ) @@ -226,8 +225,8 @@ static void *manager_loop (void *this_gen) { int *psock = malloc(sizeof(int)); *psock = ssock; - if (this->stream->xine->verbosity >= XINE_VERBOSITY_LOG) - printf("broadcaster: new connection socket %d\n", *psock); + xprintf(this->stream->xine, XINE_VERBOSITY_LOG, + "broadcaster: new connection socket %d\n", *psock); xine_list_append_content(this->connections, psock); } } @@ -348,8 +347,7 @@ void _x_close_broadcaster(broadcaster_t *this) psock = xine_list_first_content (this->connections); while (psock) { - if (this->stream->xine->verbosity >= XINE_VERBOSITY_LOG) - printf("broadcaster: closing socket %d\n", *psock); + xprintf(this->stream->xine, XINE_VERBOSITY_LOG, "broadcaster: closing socket %d\n", *psock); close(*psock); free(psock); xine_list_delete_current (this->connections); |