search for: config_get_config

Displaying 14 results from an estimated 14 matches for "config_get_config".

2006 Sep 24
1
Add-on patch to support .pls .asx .ram .qtl listing formats
...t, source_t *source, + int response) +{ + char *username = NULL; + char *password = NULL; + ice_config_t *config; + + COMMAND_REQUIRE(client, "username", username); + COMMAND_REQUIRE(client, "password", password); + + client->respcode = 200; + config = config_get_config(); + snprintf (client->refbuf->data, PER_CLIENT_REFBUF_SIZE, + "HTTP/1.0 200 OK\r\n" + "Content-Type: audio/x-scpls\r\n" + "Content-Disposition = attachment; filename=listen.pls\r\n\r\n" + "[playlist]\r\n" + "...
2011 Feb 28
2
Generation of M3U and XSPF
...t of the m3u and xspf file use local url => 127.0.0.1 with local port How can I change this generation , Is it possible to add a property (external url, external port) in the configuration file and to apply a patch on the fserve.c source file Here is the code to change : * config = config_get_config(); snprintf (httpclient->refbuf->data, BUFSIZE, "HTTP/1.0 200 OK\r\n" "Content-Type: audio/x-mpegurl\r\n\r\n" "http://%s:%d%s\r\n", config->hostname, config->port,...
2010 Jul 30
33
[PATCHES] Smartjog PatchDump
Hello, I work at SmarctJog.com, we have here some patches on IceCast for performance and reliability, these are mostly client/connection/source cleanups (a slave merge is underway, and some more good stuff (c)), but we'd like this to be merged in before the list gets any longer. Please find attached a list of our patches with a short desc: This one is actually not from us/me, it was found
2011 Mar 01
0
Generation of M3U and XSPF
...gt; => 127.0.0.1 with local port > > How can I change this generation , Is it possible to add a property > (external url, external port) in the configuration file and to apply a patch > on the fserve.c source file > > Here is the code to change : > > * config = config_get_config(); > snprintf (httpclient->refbuf->data, BUFSIZE, > "HTTP/1.0 200 OK\r\n" > "Content-Type: audio/x-mpegurl\r\n\r\n" > > "http://%s:%d%s\r\n", > config-&g...
2009 Dec 23
0
icecast 2.3.2 generated buildm3u don't support authenticated streaming via https
...t *client, const char *mount) { const char *username = NULL; const char *password = NULL; ice_config_t *config; COMMAND_REQUIRE(client, "username", username); COMMAND_REQUIRE(client, "password", password); client->respcode = 200; config = config_get_config(); snprintf (client->refbuf->data, PER_CLIENT_REFBUF_SIZE, "HTTP/1.0 200 OK\r\n" "Content-Type: audio/x-mpegurl\r\n" "Content-Disposition = attachment; filename=listen.m3u\r\n\r\n" "http://%s:%s@%s:%d%s\r\n",...
2015 Mar 22
2
exposed-port option for Icecast behind reverse proxy
...unt); config_release_config(); str = httpp_getvar(source->parser, "ice-audio-info"); diff --git a/src/yp.c b/src/yp.c index 4470d47..e3acb5f 100644 --- a/src/yp.c +++ b/src/yp.c @@ -584,12 +584,12 @@ static ypdata_t *create_yp_entry (const char *mount) if (url == NULL) break; config = config_get_config(); - ret = snprintf (url, len, "http://%s:%d%s", config->hostname, config->port, mount); + ret = snprintf (url, len, "http://%s:%d%s", config->hostname, ( config->exposed_port ? config->exposed_port : config->port ), mount); if (ret >= (signed)len) { s = rea...
2004 Aug 06
2
Params and handling
From reading through the code, I can understand that the parameters are read from the XML config file and stored in the void pointer "data", but if I am writing a new playlist module that needs additional parameters, how would I go about handling adding this to the code? I have a MySQL playlist module written, but I cannot seem to integrate the parameters such that the admin would
2004 Aug 06
0
[PATCH] Add per-listener and per-mount connection time limits.
...,207 **** --- 206,214 ---- #endif long queue_limit; + int global_listener_time_limit; + int mount_listener_time_limit; + int listener_time_limit; ice_config_t *config; char *hostname; int port; *************** *** 209,214 **** --- 216,223 ---- config = config_get_config(); queue_limit = config->queue_size_limit; + global_listener_time_limit = config->client_time_limit; + mount_listener_time_limit = source->max_listener_time; timeout = config->source_timeout; hostname = config->hostname; port = config->port;...
2005 Nov 11
0
[PATCH] icecast video preview 2
...amp;codec->os); @@ -112,8 +127,32 @@ ERROR0 ("Not enough header packets"); return NULL; } - if (theora_packet_iskeyframe (&packet)) - has_keyframe = 1; + if (theora_packet_iskeyframe (&packet)) { +#ifdef WITH_PNG + if(config_get_config()->video_preview == 1 ) { + config_release_config(); + + if (theora -> frame_count == -1) { + fflush(stdout); + theora_decode_init (&theora->td, &theora-> ti); + } + + if ((theora -> frame_count % PREVIEW_KEYFRAME_INTERVAL )== 0) { + fflush(stdout); + the...
2005 Nov 11
2
[PATCH] icecast video preview 2
Updated version of video preview covering frame writing every 3 keyframe and a xsl typo. Best regards :) kysucix -- Make things as simple as possible, but no simpler. - Albert Einstein
2005 Nov 11
1
[PATCH] icecast video preview
Hi. Here it is my patch to put a video preview of a theora stream in status.xsl. I just added a: <video-preview>1</video-preview> parameters in icecast.xml.in that control the previewing function. It encodes a png in $webroot/$mountname.tmp and then move it to $webroot/$mountname.png As for now it saves a frame every theora keyframe, which is probably too heavy for the server but
2004 Aug 06
6
[PATCH] Icecast2 - chroot, setuid/gid...
Hi all again... I did a chroot patch with ability to change uid and gid. I dunno if you all approve with the current implementation but the patch is small and it works here. remember to CC, since i'm not on this ml... //Ian Kumlien PS. To anyone on vorbis-dev, I'm *REALLY* sorry must be tired or something.. =) DS. <p><p><p> -------------- next part -------------- A
2006 Apr 18
4
Windows Xp / Icecast 2.3.1 / Oddcast 3 / Crap Router?
Ok here's the deal. I set up Icecast and Oddcast, got them to communicate properly, but cannot access the live audio remotely. On other computers in the LAN it works perfetly. Currently I operate wirelessly behind a D-Link 514 router (a mite outdated by now, yes?) and have opened all necessary ports, turned my firewalls off, set this computer as a DMZ, pretty much everything I can think of -
2011 Apr 29
4
You don't check for malloc failure
...ize); + if (listenurl == NULL) { + abort(); + } memset (listenurl, '\000', listen_url_size); snprintf (listenurl, listen_url_size, "http://%s:%d%s", config->hostname, config->port, source->mount); @@ -1312,8 +1315,12 @@ config = config_get_config(); len = strlen (config->webroot_dir) + strlen (mount) + 1; path = malloc (len); - if (path) + if (path) { snprintf (path, len, "%s%s", config->webroot_dir, mount); + } else { + abort(); + } + config_release_config...