# HG changeset patch # User Christian Birchinger # Date 1196548698 -3600 # Node ID b0429a649a84a7cf11df2c3bb0ca3d153b296c03 # Parent c07a3723777ca5b20f15b3b9647fb64ec7a7f822 Handle streams inside m3u files better. If thres a better way than is_http() to detect streams, let me know. diff -r c07a3723777c -r b0429a649a84 src/audacious/playlist.c --- a/src/audacious/playlist.c Sat Dec 01 20:51:47 2007 +0100 +++ b/src/audacious/playlist.c Sat Dec 01 23:38:18 2007 +0100 @@ -1700,7 +1700,14 @@ const gchar * playlist_name, gint pos, const gchar * title, gint len) { - Tuple *tuple = tuple_new(); + Tuple *tuple; + + if (is_http(filename_p)) { + tuple = tuple_new(); + tuple_associate_string(tuple, FIELD_FILE_NAME, NULL, filename_p); + } else { + tuple = tuple_new_from_filename(filename_p); + } tuple_associate_string(tuple, FIELD_TITLE, NULL, title); tuple_associate_int(tuple, FIELD_LENGTH, NULL, len);