[xiph-cvs] cvs commit: ices/src cue.c
Brendan
brendan at xiph.org
Wed Mar 19 11:36:35 PST 2003
brendan 03/03/19 14:36:33
Modified: src cue.c
Log:
Strip pid from cue file.
Fix a warning.
Revision Changes Path
1.13 +4 -8 ices/src/cue.c
Index: cue.c
===================================================================
RCS file: /cvs/ice/ices/src/cue.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- cue.c 16 Mar 2003 08:32:34 -0000 1.12
+++ cue.c 19 Mar 2003 19:36:33 -0000 1.13
@@ -58,7 +58,7 @@
ices_metadata_get (artist, sizeof (artist), title, sizeof (title));
fprintf (fp, "%s\n%d\n%d\n%s\n%f\n%d\n%s\n%s\n", source->path,
- source->filesize, source->bitrate,
+ (int)source->filesize, source->bitrate,
ices_util_file_time (source->bitrate, source->filesize, buf),
ices_util_percent (source->bytes_read, source->filesize),
ices_cue_lineno, artist, title);
@@ -94,8 +94,7 @@
const char *
ices_cue_get_filename (void)
{
- static char filespace[1024];
- char buf[1024];
+ static char buf[1024];
if (ices_cue_filename)
return ices_cue_filename;
@@ -105,12 +104,9 @@
return NULL;
}
- ices_util_get_random_filename (buf, "cue");
+ snprintf (buf, sizeof (buf), "%s/ices.cue", ices_config.base_directory);
- snprintf (filespace, sizeof (filespace), "%s/%s", ices_config.base_directory,
- buf);
-
- return filespace;
+ return buf;
}
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list