1.1 --- a/gst-plugins-mythtv/src/myth_livetv.c Tue Sep 26 15:58:37 2006 +0100
1.2 +++ b/gst-plugins-mythtv/src/myth_livetv.c Mon Oct 23 14:36:26 2006 +0100
1.3 @@ -12,6 +12,8 @@
1.4 static void myth_livetv_dispose (GObject *object);
1.5 static void myth_livetv_finalize (GObject *object);
1.6
1.7 +static gint tvchain_curr_index = -1;
1.8 +
1.9 G_DEFINE_TYPE(MythLiveTV, myth_livetv, G_TYPE_OBJECT)
1.10
1.11 static void
1.12 @@ -82,8 +84,6 @@
1.13 gboolean
1.14 myth_livetv_setup ( MythLiveTV *livetv )
1.15 {
1.16 -
1.17 - // FIXME: Get from the settings
1.18 GMythSettings *msettings = gmyth_context_get_settings ();
1.19 gboolean res = TRUE;
1.20
1.21 @@ -150,7 +150,7 @@
1.22 }
1.23
1.24 // Get program info from database using chanid and starttime
1.25 - livetv->proginfo = gmyth_tvchain_get_program_at (livetv->tvchain, -1);
1.26 + livetv->proginfo = gmyth_tvchain_get_program_at (livetv->tvchain, tvchain_curr_index++ );
1.27 if ( livetv->proginfo == NULL ) {
1.28 g_warning ("[%s] LiveTV not successfully started.\n", __FUNCTION__ );
1.29 res = FALSE;