# HG changeset patch # User rosfran # Date 1162853441 0 # Node ID 0ae13d61ffd31c42a0e60c2687fe8a1ae57dad1c # Parent 63854066607aceabdc70c47a2dd7718de5368877 [svn r68] Added channel change functions. diff -r 63854066607a -r 0ae13d61ffd3 gmyth/src/gmyth_livetv.c --- a/gmyth/src/gmyth_livetv.c Mon Nov 06 22:11:21 2006 +0000 +++ b/gmyth/src/gmyth_livetv.c Mon Nov 06 22:50:41 2006 +0000 @@ -132,6 +132,21 @@ res = FALSE; goto error; } + +#if 0 + gint ch = 1011; + gint idx = 0; + for ( ; idx < 5; idx++ ) { + if ( gmyth_recorder_check_channel( livetv->recorder, ch ) ) { + if ( gmyth_recorder_set_channel( livetv->recorder, ch ) ) { + g_print( "[%s] Channel changed!!! [%d].\n", __FUNCTION__, ch ); + break; + } + } + ++ch; + } +#endif + // Spawn live tv. Uses the socket to send mythprotocol data to start livetv in the backend (remotelly) res = gmyth_recorder_spawntv ( livetv->recorder, gmyth_tvchain_get_id(livetv->tvchain) );