[svn r68] Added channel change functions.
1.1 --- a/gmyth/src/gmyth_livetv.c Mon Nov 06 22:11:21 2006 +0000
1.2 +++ b/gmyth/src/gmyth_livetv.c Mon Nov 06 22:50:41 2006 +0000
1.3 @@ -132,6 +132,21 @@
1.4 res = FALSE;
1.5 goto error;
1.6 }
1.7 +
1.8 +#if 0
1.9 + gint ch = 1011;
1.10 + gint idx = 0;
1.11 + for ( ; idx < 5; idx++ ) {
1.12 + if ( gmyth_recorder_check_channel( livetv->recorder, ch ) ) {
1.13 + if ( gmyth_recorder_set_channel( livetv->recorder, ch ) ) {
1.14 + g_print( "[%s] Channel changed!!! [%d].\n", __FUNCTION__, ch );
1.15 + break;
1.16 + }
1.17 + }
1.18 + ++ch;
1.19 + }
1.20 +#endif
1.21 +
1.22 // Spawn live tv. Uses the socket to send mythprotocol data to start livetv in the backend (remotelly)
1.23 res = gmyth_recorder_spawntv ( livetv->recorder,
1.24 gmyth_tvchain_get_id(livetv->tvchain) );