diff -r 7174e23f7617 -r 254e85c43269 maemo-ui/src/mmyth_ui.c --- a/maemo-ui/src/mmyth_ui.c Thu Sep 28 16:02:14 2006 +0100 +++ b/maemo-ui/src/mmyth_ui.c Tue Dec 12 17:59:47 2006 +0000 @@ -19,7 +19,6 @@ #include "mmyth_tvplayer.h" /* GMyth library includes */ -#include "gmyth_context.h" #ifndef MAEMO_PLATFORM static gint button_press_handler (GtkWidget *widget, GdkEvent *event); @@ -57,6 +56,8 @@ mmyth_ui = g_new0 (MMythUi, 1); + mmyth_ui->backend_info = gmyth_backend_info_new_full( "192.168.1.109", "mythtv", "mythtv", "mythconverg", 6543 ); + mmyth_ui->main_window = main_window; mmyth_ui->videow = NULL; mmyth_ui->mmyth_recordui = NULL; @@ -215,7 +216,7 @@ if (mmyth_uisettings_run (GTK_WINDOW (mmyth_ui->main_window))) { // If user changes the settings, we restart the context g_debug ("[%s] Restarting mmyth_context to new settings", __FUNCTION__); - gmyth_context_initialize(); + //gmyth_context_initialize(); } } @@ -313,7 +314,7 @@ /* choose here if this is a LiveTV session */ mmyth_ui->tvplayer->is_livetv = TRUE; - res = mmyth_tvplayer_initialize (mmyth_ui->tvplayer); + res = mmyth_tvplayer_initialize (mmyth_ui->tvplayer, mmyth_ui->backend_info); if (!res) { g_warning ("[%s] Could not initialize tvplayer", __FUNCTION__); @@ -596,7 +597,7 @@ // Creates the tv player that will retrieve the mythtv content, decode and show it mmyth_ui->tvplayer = mmyth_tvplayer_new (); g_debug ("[%s] New TV Player created: %d\n", __FUNCTION__, (int) (mmyth_ui->tvplayer)); - res = mmyth_tvplayer_initialize (mmyth_ui->tvplayer); + res = mmyth_tvplayer_initialize (mmyth_ui->tvplayer, mmyth_ui->backend_info); if (!res) { g_warning ("[%s] Could not initialize tvplayer", __FUNCTION__);