diff options
author | Benjamin Otte <otte@gnome.org> | 2008-07-17 15:46:50 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2008-07-17 15:46:50 +0200 |
commit | 5c5f5b93eb117af7c1ea85175f8cffd773409d59 (patch) | |
tree | 35ca7d995352f56da51d4ac50c69d3031ea23f7b | |
parent | 76f4a513492ee381cde5adc659f9da1cff9d5a3f (diff) |
don't throw an error if we try to autoplay file:// urls
-rw-r--r-- | src/swfmoz_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/swfmoz_config.c b/src/swfmoz_config.c index 10d4b49..024bc4f 100644 --- a/src/swfmoz_config.c +++ b/src/swfmoz_config.c @@ -121,6 +121,8 @@ swfmoz_config_should_autoplay (SwfmozConfig *config, const SwfdecURL *url) g_return_val_if_fail (SWFMOZ_IS_CONFIG (config), FALSE); host = swfdec_url_get_host (url); + if (host == NULL) + host = swfdec_url_get_protocol (url); autoplay = swfmoz_config_read_autoplay (config, "global", autoplay); autoplay = swfmoz_config_read_autoplay (config, host, autoplay); |