diff -r f3cdc7844178 -r d5f5855e7800 gst-plugins-mythtv/src/myth_livetv.c --- a/gst-plugins-mythtv/src/myth_livetv.c Tue Sep 26 15:58:37 2006 +0100 +++ b/gst-plugins-mythtv/src/myth_livetv.c Mon Oct 23 14:41:30 2006 +0100 @@ -12,6 +12,8 @@ static void myth_livetv_dispose (GObject *object); static void myth_livetv_finalize (GObject *object); +static gint tvchain_curr_index = -1; + G_DEFINE_TYPE(MythLiveTV, myth_livetv, G_TYPE_OBJECT) static void @@ -82,8 +84,6 @@ gboolean myth_livetv_setup ( MythLiveTV *livetv ) { - - // FIXME: Get from the settings GMythSettings *msettings = gmyth_context_get_settings (); gboolean res = TRUE; @@ -150,7 +150,7 @@ } // Get program info from database using chanid and starttime - livetv->proginfo = gmyth_tvchain_get_program_at (livetv->tvchain, -1); + livetv->proginfo = gmyth_tvchain_get_program_at (livetv->tvchain, tvchain_curr_index++ ); if ( livetv->proginfo == NULL ) { g_warning ("[%s] LiveTV not successfully started.\n", __FUNCTION__ ); res = FALSE;