changeset 966:cf30e07395d5 trunk

[svn] - display filename if no tag is available
author nenolod
date Mon, 24 Apr 2006 13:07:42 -0700
parents dd8347ed9616
children 55757f96ef5d
files Plugins/Input/mpg123/mpg123.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/mpg123/mpg123.c	Mon Apr 24 12:58:25 2006 -0700
+++ b/Plugins/Input/mpg123/mpg123.c	Mon Apr 24 13:07:42 2006 -0700
@@ -492,7 +492,7 @@
                                  mpg123_cfg.id3_format :
                                  xmms_get_gentitle_format(), input);
 
-    if (!title) {
+    if (!title || strlen(input->track_name) == 0) {
         /* Format according to filename.  */
         title = g_path_get_basename(filename);
         if (extname(title))