From 9dcaba9d6a9103c11d8f5e5de1f2db54b3f5ab3b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 21 Oct 2007 19:20:30 +0200 Subject: cute little hacks don't work, set properties manually --- player/swfdec-window.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'player') 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; } -- cgit v1.2.3