libswfdec-gtk/swfdec_gtk_loader.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) New commits: diff-tree 1906bf5a380edbbb4b808543cf3da0e9e836dbf4 (from ddb4873be0e649ffc845f1501806441cd7b341c9) Author: Benjamin Otte <otte@gnome.org> Date: Thu Apr 5 11:11:13 2007 +0200 call gnome_vfs_make_uri_from_input on provided URI diff --git a/libswfdec-gtk/swfdec_gtk_loader.c b/libswfdec-gtk/swfdec_gtk_loader.c index 4b1e57f..f0e8c40 100644 --- a/libswfdec-gtk/swfdec_gtk_loader.c +++ b/libswfdec-gtk/swfdec_gtk_loader.c @@ -224,7 +224,9 @@ swfdec_gtk_loader_init (SwfdecGtkLoader * @uri: The location of the file to open * * Creates a new loader for the given URI using gnome-vfs (or using the local - * file backend, if compiled without gnome-vfs support). + * file backend, if compiled without gnome-vfs support). The uri must be valid + * UTF-8. If using gnome-vfs, gnome_vfs_make_uri_from_input() will be called on + * @uri. * * Returns: a new #SwfdecLoader using gnome-vfs. **/ @@ -232,11 +234,14 @@ SwfdecLoader * swfdec_gtk_loader_new (const char *uri) { GnomeVFSURI *guri; + char *s; g_return_val_if_fail (uri != NULL, NULL); gnome_vfs_init (); - guri = gnome_vfs_uri_new (uri); + s = gnome_vfs_make_uri_from_input (uri); + guri = gnome_vfs_uri_new (s); + g_free (s); return swfdec_gtk_loader_new_from_uri (guri); }