search for: refbuf

Displaying 20 results from an estimated 65 matches for "refbuf".

2010 Jul 30
33
[PATCHES] Smartjog PatchDump
...5/31] Connection: simplify in-connection handeling (kill 1 function, and break shoutcast) [PATCH 16/31] Connection: extract connection_process [PATCH 17/31] Connection: add threads this needs to go after the client_tag_t obsoletting patch [PATCH 18/31] connection_process takes node, con_q_t gets refbuf, and con_t timeout, util updated [PATCH 19/31] connection: process takes node, not con+args, cleanup error handeling (propagate) [PATCH 20/31] connection: add parser to connection, and use read_headers changes. [PATCH 21/31] Add Client in connection_queue_t [PATCH 22/31] Fix Shoutcast, Move it...
2006 Jul 22
1
Possible Minor bug found in current 2.3.1 release of icecast2
...ff to format.c line 104 below. diff -urNab icecast-2.3.1.orig/src/format.c icecast-2.3.1/src/format.c --- icecast-2.3.1.orig/src/format.c 2006-07-23 00:48:16.418444051 -0400 +++ icecast-2.3.1/src/format.c 2006-07-20 22:38:30.000000000 -0400 @@ -101,7 +101,7 @@ long size = 0; refbuf = source->burst_point; size = client->intro_offset; - while ((size > 0) && refbuf->next) + while ((size > 0) && (refbuf != NULL) && refbuf->next) { size -= refbuf->len; refbuf = refbuf->next;...
2006 Sep 24
1
Add-on patch to support .pls .asx .ram .qtl listing formats
...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" + "File1=http://%s:%s@%s:%d%s\r\n"...
2004 Aug 06
0
patch: single-q
...or placing stream data into a per-source queue instead of the current per-client queues. The main differences shown in the diff are in source.c, format_*.c as these interact considerably with the queue code but there are 2 main aspects to the queue differences 1. An associated pointer is added to refbuf. This is just a pointer to another refbuf object but its use is up to the specific format plugin. In the case of mp3 this stores the shoutcast metadata at that point in the stream, in the case of Ogg this refers is a list of refbuf objects containing Ogg header pages. In both cases (mp3 and ogg) t...
2004 Aug 06
1
Re: PATCH: increase network congestion resilience
...you'll end > up sending a corrupt stream to the client. This is a bad idea. ... > Yeah, you've been lucky (well, not THAT lucky, you're relatively > unlikely to hit the broken cases) and not done this at one of the times > where it will cause errors. In icecast/vorbis each refbuf is composed of a entire page, and the documentation (http://www.xiph.org/ogg/vorbis/doc/oggstream.html) states that a page contains the necessary headers to reconstruct the packetsand re-sync the stream. So, the players must be able continue playing if it receives an out of sequence page. Bec...
2008 Aug 25
2
patch for native iphone support
...ktime embedable object on the iPhone. Enjoy! Begin Patch -------------------- Index: src/format_mp3.c =================================================================== --- src/format_mp3.c (revision 15198) +++ src/format_mp3.c (working copy) @@ -639,6 +639,9 @@ char *ptr = client->refbuf->data + client->refbuf->len - 2; int bytes; const char *useragent; + char *range; + int rangenumber; + int rangenumber2; if (client_mp3 == NULL) return -1; @@ -657,7 +660,44 @@ remaining -= bytes; ptr += bytes; } + range = httpp_g...
2004 Aug 06
1
PATCH: Faststart implementation
...e (less "precise"). <p>If you agree, I can fix it. ¿How would you implement/hide it to lower layers? ¿Add a "plugin->get_serialno" in format_xxx.c and then do something like "if (source->format->has_predata) -> ... source->format->get_serialno(refbuf); ..." for example? <p>PS: this can be also used for selectively dropping packages, altough I just read it doesn't seem to be interesting :-) -- ricardo galli GPG id C8114D34 --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://...
2006 Apr 01
2
compiling 2.3.1
...ot after a make in the source dir: > make[3]: Entering directory `/tar_archive/icecast-2.3.1/src' > /bin/sh ../libtool --mode=link gcc -pthread -g -O2 -L/usr/local/lib > -o icecast cfgfile.o main.o logging.o sighandler.o connection.o > global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o > fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o > format_midi.o format_flac.o auth.o auth_htpasswd.o format_vorbis.o > net/libicenet.la thread/libicethread.la httpp/libicehttpp.la > log/libicelog.la avl/libiceavl.la timing/libicetiming.la -lvo...
2004 Aug 06
0
[RFC] RTP support
...PEG_HDR_SIZE; + gettimeofday(&rtp_tv,NULL); + *(unsigned long *)(rtp_buf+4)=htonl(rtp_timestamp+ + (((unsigned long)rtp_tv.tv_sec)*RTP_MPEG_CLK)+ + (((unsigned long)rtp_tv.tv_usec)*(RTP_MPEG_CLK/10000))/100); + for(rtp_done=0;rtp_done<refbuf->len;rtp_done+=rtp_amount) { + if (rtp_amount>refbuf->len-rtp_done) + rtp_amount=refbuf->len-rtp_done; + *(unsigned short*)(rtp_buf+RTP_HDR_SIZE+2)=htons(rtp_done); + memcpy(rtp_buf+RTP_HDR_SIZE+RTP_MPEG_HDR_SIZE, refbuf->da...
2004 Aug 06
2
Re: PATCH: increase network congestion resilience
On Saturday 18 January 2003 03:37, Michael Smith shaped the electrons to shout: > We can't just drop packets, the transmission model assumed by the > format handlers (and required by at least one of them) will not permit It's not vorbis. Does it? > us to drop any data. It'd be possible, in theory at least, to tag > buffers with a flag to say that they can be dropped, but
2004 Aug 06
2
Re: PATCH: increase network congestion resilience
...es and if that is > continuously having to queue (ie not all data can be sent) then display > the warning, maybe make it a run-time option (default enabled). Hi Karl, I will study it later. Do you have commit privileges? If so, I can send you also a patch to solve a memory leak bug (refbufs not released) and propose a bigger change: move the logic of actually sending the buffers to another function, and also exploit it to do some flow control. It is working in my site since a year without a glitch. It's something like (for old icecast version): <p>+int send_client_qu...
2004 Aug 06
2
icecast-2.0-kh34
On Sun, 25 Apr 2004, Wild Karl-Heinz wrote: > Program received signal SIGSEGV, Segmentation fault. > 0x08057f50 in format_mp3_write_buf_to_client (self=0x80bee00, client=0x80d5e00) > at format_mp3.c:311 > 311 if (ret < (int)refbuf->associated->len) > > what else can i do? When you get to this point, you should do a backtrace so Karl can see what is calling this code. Though since this is actual icecast code and not, for example, a libc function, it might be enough on its own. Geoff. <p>--- >8 ---- Li...
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 -
2004 Aug 06
2
PATCH: Faststart implementation
Hi, find enclosed a patch to implement faststart (or prebuffering). Basically, it stores a number of "refbuf"s, configurable by seconds. When a new client connects, it adds the prebuffers to que clients' queue so they are delivered as fast as permitted by the connection. As result, the players prebuffers are filled up faster giving a better "response". I tried to minimise the impact...
2014 Jan 08
2
Possible memory leak in Icecast-2.4-beta3
2011 Feb 28
2
Generation of M3U and XSPF
...ith 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, sourceuri...
2005 Nov 11
0
[PATCH] icecast video preview 2
...========================================================= --- src/Makefile.am (revisione 10365) +++ src/Makefile.am (copia locale) @@ -7,11 +7,12 @@ bin_PROGRAMS = icecast noinst_HEADERS = admin.h cfgfile.h os.h logging.h sighandler.h connection.h \ - global.h util.h slave.h source.h stats.h refbuf.h client.h \ + global.h util.h slave.h source.h stats.h refbuf.h client.h format.h \ compat.h fserve.h xslt.h yp.h event.h md5.h \ auth.h auth_htpasswd.h auth_url.h \ format.h format_ogg.h format_mp3.h \ - format_vorbis.h format_theora.h format_flac.h format_speex.h format_midi...
2006 Apr 01
0
compiling 2.3.1
...urce dir: > > >> make[3]: Entering directory `/tar_archive/icecast-2.3.1/src' >> /bin/sh ../libtool --mode=link gcc -pthread -g -O2 -L/usr/local/lib >> -o icecast cfgfile.o main.o logging.o sighandler.o connection.o >> global.o util.o slave.o source.o stats.o refbuf.o client.o xslt.o >> fserve.o event.o admin.o md5.o format.o format_ogg.o format_mp3.o >> format_midi.o format_flac.o auth.o auth_htpasswd.o format_vorbis.o >> net/libicenet.la thread/libicethread.la httpp/libicehttpp.la >> log/libicelog.la avl/libiceavl.la timing/libice...
2008 Nov 29
0
Icecast Streaming to an iPhone or iPod touch
...in this function */ + const char *useragent; + useragent = httpp_getvar (client->parser, "user-agent"); + int appledevicesupp = 0; + + if (useragent && strstr(useragent, "CoreMedia")) { + appledevicesupp = 1; + } + remaining = client->refbuf->len; ptr = client->refbuf->data; client->respcode = 200; - bytes = snprintf (ptr, remaining, "HTTP/1.0 200 OK\r\n" - "Content-Type: %s\r\n", source->format->contenttype); + if (!appledevicesupp) { + bytes = snprintf (ptr, re...
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