Mercurial > audlegacy
changeset 2399:9b7b11176d4e trunk
[svn] - should not pass null fd to input plugins.
author | yaz |
---|---|
date | Wed, 24 Jan 2007 18:40:07 -0800 |
parents | 1e4ae3859856 |
children | 4daf4fa409e0 |
files | ChangeLog src/audacious/input.c |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Jan 24 15:15:46 2007 -0800 +++ b/ChangeLog Wed Jan 24 18:40:07 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-24 23:15:46 +0000 Derek Pomery <nemo@m8y.org> + revision [3806] + Strip 0xFEFF + + trunk/po/sr@Latn.po | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2007-01-24 23:10:51 +0000 Derek Pomery <nemo@m8y.org> revision [3804] Strip 0xFEFF from start of file. Windows error?
--- a/src/audacious/input.c Wed Jan 24 15:15:46 2007 -0800 +++ b/src/audacious/input.c Wed Jan 24 18:40:07 2007 -0800 @@ -425,6 +425,9 @@ filename_proxy = g_strdup(filename); fd = vfs_buffered_file_new_from_uri(filename_proxy); + if(!fd) + return NULL; + ext = strrchr(filename_proxy, '.') + 1; use_ext_filter = (fd != NULL && (!g_strncasecmp(filename, "/", 1) || !g_strncasecmp(filename, "file://", 7))) ? TRUE : FALSE;