|
From: robs <ro...@us...> - 2008-03-16 17:59:05
|
Update of /cvsroot/sox/sox/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7254 Modified Files: sox.c Log Message: don't display null file-name Index: sox.c =================================================================== RCS file: /cvsroot/sox/sox/src/sox.c,v retrieving revision 1.309 retrieving revision 1.310 diff -u -d -r1.309 -r1.310 --- sox.c 16 Mar 2008 07:52:57 -0000 1.309 +++ sox.c 16 Mar 2008 17:59:01 -0000 1.310 @@ -195,10 +195,13 @@ sox_size_t ws = ft->length / ft->signal.channels; (void)full; - fprintf(output, "\n%s:", ft->filename); - if (strcmp(ft->filename, "-") == 0 || (ft->handler.flags & SOX_FILE_DEVICE)) - fprintf(output, " (%s)", ft->handler.names[0]); - fprintf(output, "\n\n"); + fprintf(output, "\n"); + if (ft->filename[0]) { + fprintf(output, "%s:", ft->filename); + if (strcmp(ft->filename, "-") == 0 || (ft->handler.flags & SOX_FILE_DEVICE)) + fprintf(output, " (%s)", ft->handler.names[0]); + fprintf(output, "\n\n"); + } fprintf(output, " Encoding: %-14s", sox_encodings_short_str[ft->encoding.encoding]); text = find_comment(f->ft->comments, "Comment"); |