[xiph-cvs] cvs commit: vorbis-tools/ogg123 ogg123.c
Stan Seibert
volsung at xiph.org
Wed Dec 19 18:51:22 PST 2001
volsung 01/12/19 18:51:22
Modified: ogg123 ogg123.c
Log:
Duh. I should probably print the name of the file we're playing.
Revision Changes Path
1.55 +7 -2 vorbis-tools/ogg123/ogg123.c
Index: ogg123.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/ogg123.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- ogg123.c 2001/12/19 06:24:16 1.54
+++ ogg123.c 2001/12/20 02:51:22 1.55
@@ -14,7 +14,7 @@
* *
********************************************************************
- last mod: $Id: ogg123.c,v 1.54 2001/12/19 06:24:16 volsung Exp $
+ last mod: $Id: ogg123.c,v 1.55 2001/12/20 02:51:22 volsung Exp $
********************************************************************/
@@ -391,7 +391,8 @@
}
if ( (decoder = format->init(source, &options, &new_audio_fmt,
- &decoder_callbacks, audio_buffer)) == NULL ) {
+ &decoder_callbacks,
+ decoder_callbacks_arg)) == NULL ) {
status_error("Error opening %s using the %s module."
" The file may be corrupted.\n", source_string,
format->name);
@@ -417,6 +418,10 @@
buffer_reset (audio_buffer);
buffer_thread_start (audio_buffer);
}
+
+ /* Show which file we are playing */
+ decoder_callbacks.printf_metadata(decoder_callbacks_arg, 1,
+ "Playing: %s", source_string);
/* Skip over audio */
if (options.seekpos > 0.0) {
--- >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