Displaying 2 results from an estimated 2 matches for "http_buffer_loop".
2004 Aug 06
2
linux.conf.au and streaming (was Re: patch for libspeex)
Hi Jens,
> There is already streaming support in the xmms-plugin.
> The 0.6.0 version found at http://jzb.rapanden.dk/speex/ is hopelessly
> outdated, but the nightly version should work.
D'oh, should've looked at this before hand. Seems you've done more
or less what I've done and taken the streaming code from the
mpeg/vorbis plugins and meshed it in with yours.
I
2004 Sep 10
0
http streaming in the xmms plugin
...f(redirect)
+ 		{
+ 			if (output_file)
+ 			{
+ 				fclose(output_file);
+ 				output_file = NULL;
+ 			}
+ 			close(sock);
+ 		}
+ 
+ 		g_free(user);
+ 		g_free(pass);
+ 		g_free(host);
+ 		g_free(filename);
+ 	} while(redirect);
+ 
+ 	g_free(url);
+ 	return eof ? -1 : sock;
+ }
+ 
+ static void *http_buffer_loop(void *arg)
+ {
+ 	gchar *status, *url, *temp, *file;
+ 	gint cnt, written;
+ 	int udp_sock = 0;
+ 
+ 	url = (gchar *) arg;
+ 	sock = http_connect (url, false, offset);
+ 	
+ 	if (sock >= 0 && flac_cfg.stream.save_http_stream) {
+ 		gchar *output_name;
+ 		file = flac_http_get_title(url);...