[xiph-commits] r14516 - trunk/vorbis-tools/ogg123
ivo at svn.xiph.org
ivo at svn.xiph.org
Thu Feb 14 20:58:34 PST 2008
Author: ivo
Date: 2008-02-14 20:58:33 -0800 (Thu, 14 Feb 2008)
New Revision: 14516
Modified:
trunk/vorbis-tools/ogg123/http_transport.c
Log:
Cleaned up superflous whitespace. Put a FIXME note on an old hack.
Modified: trunk/vorbis-tools/ogg123/http_transport.c
===================================================================
--- trunk/vorbis-tools/ogg123/http_transport.c 2008-02-15 04:57:33 UTC (rev 14515)
+++ trunk/vorbis-tools/ogg123/http_transport.c 2008-02-15 04:58:33 UTC (rev 14516)
@@ -38,14 +38,14 @@
#define INPUT_BUFFER_SIZE 32768
-extern stat_format_t *stat_format; /* Bad hack! Will fix after RC3! */
+extern stat_format_t *stat_format; /* FIXME Bad hack! Will fix after RC3! */
extern signal_request_t sig_request; /* Need access to global cancel flag */
typedef struct http_private_t {
int cancel_flag;
buf_t *buf;
-
+
pthread_t curl_thread;
CURL *curl_handle;
@@ -190,7 +190,7 @@
source->source_string = strdup(source_string);
source->transport = &http_transport;
source->private = private;
-
+
private->buf = buffer_create (ogg123_opts->input_buffer_size,
ogg123_opts->input_buffer_size *
ogg123_opts->input_prebuffer / 100.0,
@@ -253,7 +253,7 @@
free(source->source_string);
free(private);
free(source);
-
+
return NULL;
}
@@ -266,7 +266,7 @@
long start;
bytes_read = buffer_get_data(data->buf, ptr, size, nmemb);
-
+
private->stats.bytes_read += bytes_read;
*/
@@ -301,15 +301,15 @@
http_private_t *private = source->private;
data_source_stats_t *data_source_stats;
buffer_stats_t *buffer_stats;
-
+
data_source_stats = malloc_data_source_stats(&private->stats);
data_source_stats->input_buffer_used = 1;
data_source_stats->transfer_rate = 0;
-
+
buffer_stats = buffer_statistics(private->buf);
data_source_stats->input_buffer = *buffer_stats;
free(buffer_stats);
-
+
return data_source_stats;
}
More information about the commits
mailing list