Commit 2021bb5d authored by Stan Seibert's avatar Stan Seibert

Duh. I should probably print the name of the file we're playing.

svn path=/trunk/vorbis-tools/; revision=2871
parent 5a4da4eb
......@@ -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 @@ void play (char *source_string)
}
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);
......@@ -418,6 +419,10 @@ void play (char *source_string)
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) {
if (!format->seek(decoder, options.seekpos, DECODER_SEEK_START))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment