# HG changeset patch # User Kieran Clancy # Date 1189397797 -34200 # Node ID 80cff88ad6d08ff96e748bd1ec64822c67472dcf # Parent adc785ee517bdf9c094254cada137341c5acd061 Default extension may not be xspf diff -r adc785ee517b -r 80cff88ad6d0 src/audacious/ui_playlist.c --- a/src/audacious/ui_playlist.c Mon Sep 10 13:45:41 2007 +0930 +++ b/src/audacious/ui_playlist.c Mon Sep 10 13:46:37 2007 +0930 @@ -53,6 +53,7 @@ #include "ui_main.h" #include "ui_manager.h" #include "util.h" +#include "config.h" #include "ui_skinned_window.h" #include "ui_skinned_button.h" @@ -949,12 +950,16 @@ playlist_file_selection_save(_("Save Playlist"), default_filename); if (filename) { - /* Default to xspf if no filename has extension */ + /* Default extension */ basename = g_path_get_basename(filename); dot = strrchr(basename, '.'); if( dot == NULL || dot == basename) { gchar *oldname = filename; +#ifdef HAVE_XSPF_PLAYLIST filename = g_strconcat(oldname, ".xspf", NULL); +#else + filename = g_strconcat(oldname, ".m3u", NULL); +#endif g_free(oldname); } g_free(basename);