summaryrefslogtreecommitdiff
path: root/player
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2007-10-21 19:20:30 +0200
committerBenjamin Otte <otte@gnome.org>2007-10-21 19:20:30 +0200
commit9dcaba9d6a9103c11d8f5e5de1f2db54b3f5ab3b (patch)
tree49ffaee88caf8871fb33d9783514ac054e00b9da /player
parent696ee12d15d0c2632f2999ffe75767be2974250b (diff)
cute little hacks don't work, set properties manually
Diffstat (limited to 'player')
-rw-r--r--player/swfdec-window.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/player/swfdec-window.c b/player/swfdec-window.c
index eb882d0..4de20c3 100644
--- a/player/swfdec-window.c
+++ b/player/swfdec-window.c
@@ -101,15 +101,16 @@ swfdec_window_set_url (SwfdecWindow *window, const char *url)
window->loader = swfdec_gtk_loader_new (url);
window->player = swfdec_gtk_player_new (NULL);
swfdec_player_set_loader (window->player, window->loader);
+ swfdec_gtk_player_set_audio_enabled (SWFDEC_GTK_PLAYER (window->player),
+ window->settings.sound);
o = gtk_builder_get_object (window->builder, "player-widget");
swfdec_gtk_widget_set_player (SWFDEC_GTK_WIDGET (o), window->player);
s = swfdec_loader_get_filename (window->loader);
gtk_window_set_title (GTK_WINDOW (window->window), s);
g_free (s);
- /* cute little hack to apply the settings without lots of code */
- settings = window->settings;
- window->settings = default_settings;
- swfdec_window_set_settings (window, &settings);
+ /* do this at the end to not get lag */
+ swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (window->player),
+ window->settings.playing);
return TRUE;
}