diff audacious/input.c @ 1235:7918849bad3e trunk

[svn] - more sanity for input_get_song_tuple() - playlist_get_tuple(gint pos)
author nenolod
date Wed, 14 Jun 2006 22:17:20 -0700
parents 502b369314c1
children 3b990c26fc46
line wrap: on
line diff
--- a/audacious/input.c	Wed Jun 14 22:08:37 2006 -0700
+++ b/audacious/input.c	Wed Jun 14 22:17:20 2006 -0700
@@ -520,6 +520,9 @@
         if ((ext = strrchr(tmp, '.')))
             *ext = '\0';
 
+	input->track_name = NULL;
+	input->length = -1;
+	input_get_song_info(filename, &input->track_name, &input->length);
         input->file_name = g_path_get_basename(tmp);
         input->file_ext = ext ? ext + 1 : NULL;
         input->file_path = tmp;