aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2005-08-28 00:36:08 (GMT)
committervektor <devnull@localhost>2005-08-28 00:36:08 (GMT)
commitf37e46a539474da3884f90f339fa8d1680004cca (patch)
treeeaa666a019ef32e2426e990f42801b5dffe44bbe
parent71db9cf6620b803524804a9d393cd1591f4a35d8 (diff)
* tvtime/src/commands.c: Update the Channel config file parameter as
the channel changes, rather than once on shutdown. Feature requested by Andrew Oikle. * tvtime/ChangeLog: Note this in the ChangeLog.
-rw-r--r--ChangeLog3
-rw-r--r--src/commands.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 274eec2..bde83b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.0 -
+ * vektor: Update the Channel config file parameter as the channel
+ changes, rather than once on shutdown. Feature requested by
+ Andrew Oikle.
* vektor: Add a new config option, SquarePixels. By default, tvtime
will now assume that the output device is square pixel, since
X servers are so often misconfigured anyway and all LCD panels
diff --git a/src/commands.c b/src/commands.c
index 6906d09..77bc812 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -3409,8 +3409,12 @@ void commands_next_frame( commands_t *cmd )
}
if( cmd->change_channel ) {
+ char number[ 6 ];
reinit_tuner( cmd );
cmd->change_channel = 0;
+ snprintf( number, 4, "%d",
+ station_get_current_id( cmd->stationmgr ) );
+ config_save( cmd->cfg, "Channel", number );
}
cmd->xmltvupdated = 0;

Privacy Policy