Mercurial > audlegacy
diff audacious/playlist.c @ 1277:8c8d4841efae trunk
[svn] - if entry->tuple == NULL, then probe the file for a decoder and build the appropriate tuple for that entry
author | nenolod |
---|---|
date | Fri, 16 Jun 2006 03:50:38 -0700 |
parents | feff5a622f06 |
children | fbb38017d144 |
line wrap: on
line diff
--- a/audacious/playlist.c Fri Jun 16 02:58:33 2006 -0700 +++ b/audacious/playlist.c Fri Jun 16 03:50:38 2006 -0700 @@ -185,6 +185,9 @@ g_return_val_if_fail(entry != NULL, FALSE); + if (entry->decoder == NULL) + entry->decoder = input_check_file(entry->filename, FALSE); + if (entry->decoder == NULL || entry->decoder->get_song_tuple == NULL) tuple = input_get_song_tuple(entry->filename); else @@ -2130,6 +2133,14 @@ } PLAYLIST_UNLOCK(); + + /* No tuple? Try to set this entry up properly. --nenolod */ + if (entry->tuple == NULL) + { + playlist_entry_get_info(entry); + tuple = entry->tuple; + } + if (tuple != NULL) { if (entry->decoder != NULL && entry->decoder->file_info_box == NULL)