search for: fallback_mount

Displaying 10 results from an estimated 10 matches for "fallback_mount".

2004 Aug 06
2
Stream metadata settings
...B -r -u -P --exclude-from=ignore ../icecast/src/source.c > ./src/source.c > --- ../icecast/src/source.c Fri Nov 14 17:51:59 2003 > +++ ./src/source.c Mon Dec 1 09:14:34 2003 > @@ -139,7 +192,6 @@ > #endif > > free(source->mount); > - free(source->fallback_mount); > client_destroy(source->client); > avl_tree_free(source->pending_tree, _free_client); > avl_tree_free(source->client_tree, _free_client); > > > This is the patch and without it, anything using fallbacks will fail > miserably. It is the prerequis...
2004 Aug 06
0
Stream metadata settings
...it's just as simple: diff -b -B -r -u -P --exclude-from=ignore ../icecast/src/source.c ./src/source.c--- ../icecast/src/source.c Mon Dec 1 14:49:52 2003 +++ ./src/source.c Mon Dec 1 14:50:56 2003 @@ -72,7 +72,7 @@ src->yp_public = 0; if(mountinfo != NULL) { - src->fallback_mount = mountinfo->fallback_mount; + src->fallback_mount = (char *)strdup(mountinfo->fallback_mount); src->max_listeners = mountinfo->max_listeners; src->dumpfilename = mountinfo->dumpfile; } Melanie <p>On 2003.12.01 14:41 Karl Heyes wrote: &g...
2004 Aug 06
1
Stream metadata settings
...B -r -u -P --exclude-from=ignore ../icecast/src/source.c > ./src/source.c--- ../icecast/src/source.c Mon Dec 1 14:49:52 2003 > +++ ./src/source.c Mon Dec 1 14:50:56 2003 > @@ -72,7 +72,7 @@ > src->yp_public = 0; > > if(mountinfo != NULL) { > - src->fallback_mount = mountinfo->fallback_mount; > + src->fallback_mount = (char *)strdup(mountinfo->fallback_mount); > src->max_listeners = mountinfo->max_listeners; > src->dumpfilename = mountinfo->dumpfile; > } 2 things... - you missed dumpfile whi...
2004 Aug 06
7
Stream metadata settings
> IMHO, a system like Icecast should be made so highly configurable that it > would fit everyone's needs, but I get the impression that only the needs of > the principal developers are of interest here. It makes me sad to see this, > Icecast could be great instead of just being good. > Melanie, As one of the 'principal developers', I don't think this is fair. Of
2004 Aug 06
2
[patch] time stamps in dump file names
...H_MAX]; + time_t curtime; + struct tm *loctime; + + /* Get the current time. */ + curtime = time (NULL); + + /* Convert it to local time representation. */ + loctime = localtime (&curtime); + source_t *src; src = (source_t *)malloc(sizeof(source_t)); @@ -76,7 +86,8 @@ src->fallback_mount = strdup (mountinfo->fallback_mount); src->max_listeners = mountinfo->max_listeners; if (mountinfo->dumpfile != NULL) - src->dumpfilename = strdup (mountinfo->dumpfile); + strftime (buffer, PATH_MAX, mountinfo->dumpfile, loctime); + src->dump...
2004 Aug 06
2
fallback source give up and returns to original source
On Sat, 2004-01-17 at 19:31, iceuse@kezako.net wrote: > Thanks, > Karl, do you plan to integrate this in your icecast-kh release? The idea is to put the the changes I've done into CVS. That way you get the best of both worlds, there's nothing conflicting AFAIK. karl. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage:
2004 Aug 06
0
fallback source give up and returns to original source
...o, I merged the fallback-override feature in icecast-kh22. I'll send you the 4 modified files (perhaps you want to integrate them in your release, but also I'm not sure about locking or not the main source before moving the clients : if(source->fallback_override && source->fallback_mount) { /* get fallback source */ avl_tree_rlock (global.source_tree); source_t *fallback_source = source_find_mount (source->fallback_mount); avl_tree_unlock (global.source_tree); if (fallback_source) { INFO2 ("passing %d listeners to %s&quot...
2004 Aug 06
2
[patch] time stamps in dump file names
...H_MAX]; + time_t curtime; + struct tm *loctime; + + /* Get the current time. */ + curtime = time (NULL); + + /* Convert it to local time representation. */ + loctime = localtime (&curtime); + source_t *src; src = (source_t *)malloc(sizeof(source_t)); @@ -76,7 +86,8 @@ src->fallback_mount = strdup (mountinfo->fallback_mount); src->max_listeners = mountinfo->max_listeners; if (mountinfo->dumpfile != NULL) - src->dumpfilename = strdup (mountinfo->dumpfile); + strftime (buffer, PATH_MAX, mountinfo->dumpfile, loctime); + src->dump...
2004 Aug 06
0
Stream metadata settings
...le free bug is in there yet. diff -b -B -r -u -P --exclude-from=ignore ../icecast/src/source.c ./src/source.c --- ../icecast/src/source.c Fri Nov 14 17:51:59 2003 +++ ./src/source.c Mon Dec 1 09:14:34 2003 @@ -139,7 +192,6 @@ #endif free(source->mount); - free(source->fallback_mount); client_destroy(source->client); avl_tree_free(source->pending_tree, _free_client); avl_tree_free(source->client_tree, _free_client); <p>This is the patch and without it, anything using fallbacks will fail miserably. It is the prerequisite for almost all other pa...
2004 Aug 06
0
[PATCH] Add per-listener and per-mount connection time limits.
...limit here (i.e. only use the global limit) */ + int max_listener_time; /* Maximum amount of time in seconds a listener can + be connected to this mount. -1 to not limit here + (i.e. only use the global limit) */ char *fallback_mount; struct _mount_proxy *next; } mount_proxy; *************** *** 65,70 **** --- 68,74 ---- int client_limit; int source_limit; + long client_time_limit; long queue_size_limit; int threadpool_size; int client_timeout; *** src/source.c.orig Mon Dec 29 10:38:...