Commit 310bd581 authored by Michael Smith's avatar Michael Smith
Browse files

Send ices2 version string to server.

(bump version number to beta2, it's been a long time since it started saying
beta1).

svn path=/trunk/ices/; revision=3842
parent fa251f76
/* config.h
* - configuration, and global structures built from config
*
* $Id: config.h,v 1.14 2002/08/16 14:23:43 msmith Exp $
* $Id: config.h,v 1.15 2002/08/16 15:47:36 msmith Exp $
*
* Copyright (c) 2001 Michael Smith <msmith@labyrinth.net.au>
*
......@@ -17,6 +17,8 @@
#include "stream.h"
#include "inputmodule.h"
#define VERSIONSTRING "IceS 2.0beta2"
typedef struct _module_param_tag
{
char *name;
......
/* ices.c
* - Main startup, thread launching, and cleanup code.
*
* $Id: ices.c,v 1.4 2002/01/29 09:20:27 msmith Exp $
* $Id: ices.c,v 1.5 2002/08/16 15:47:36 msmith Exp $
*
* Copyright (c) 2001-2002 Michael Smith <msmith@labyrinth.net.au>
*
......@@ -34,7 +34,7 @@ int main(int argc, char **argv)
if (argc != 2)
{
fprintf(stderr, "IceS version 2.0beta1\n"
fprintf(stderr, VERSIONSTRING "\n"
" (c) Copyright 2001-2002 Michael Smith <msmith@icecast.org>\n"
"\n"
"Usage: \"ices config.xml\"\n");
......
/* stream.c
* - Core streaming functions/main loop.
*
* $Id: stream.c,v 1.20 2002/08/16 14:23:43 msmith Exp $
* $Id: stream.c,v 1.21 2002/08/16 15:47:36 msmith Exp $
*
* Copyright (c) 2001 Michael Smith <msmith@labyrinth.net.au>
*
......@@ -104,6 +104,13 @@ void *ices_instance_stream(void *arg)
return NULL;
}
if (!(shout_set_agent(sdsc->shout, VERSIONSTRING)) == SHOUTERR_SUCCESS) {
LOG_ERROR1("libshout error: %s\n", shout_get_error(sdsc->shout));
free(connip);
stream->died = 1;
return NULL;
}
if (!(shout_set_mount(sdsc->shout, stream->mount)) == SHOUTERR_SUCCESS) {
LOG_ERROR1("libshout error: %s\n", shout_get_error(sdsc->shout));
free(connip);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment