Mercurial > audlegacy-plugins
changeset 1268:74e20cec44b4
make playlist_save_m3u() accept uri as a destination file. pointed out by Crazy_Hopper.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sun, 15 Jul 2007 00:53:16 +0900 |
parents | de5d238cd42a |
children | 0e160bafce1c |
files | src/m3u/m3u.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);