# HG changeset patch # User Yoshiki Yazawa # Date 1184428396 -32400 # Node ID 74e20cec44b4d033bdc0b0116e2ad38f125108e1 # Parent de5d238cd42a05db7f88046fcdb6d3190ea192d5 make playlist_save_m3u() accept uri as a destination file. pointed out by Crazy_Hopper. diff -r de5d238cd42a -r 74e20cec44b4 src/m3u/m3u.c --- a/src/m3u/m3u.c Sun Jul 15 00:19:10 2007 +0900 +++ b/src/m3u/m3u.c Sun Jul 15 00:53:16 2007 +0900 @@ -162,8 +162,7 @@ g_return_if_fail(playlist != NULL); fn = g_filename_to_uri(filename, NULL, NULL); - g_return_if_fail(fn != NULL); - file = vfs_fopen(fn, "wb"); + file = vfs_fopen(fn ? fn : filename, "wb"); g_free(fn); fn = NULL; g_return_if_fail(file != NULL);