[svn r68] Added channel change functions. trunk
authorrosfran
Mon Nov 06 22:50:41 2006 +0000 (2006-11-06)
branchtrunk
changeset 670ae13d61ffd3
parent 66 63854066607a
child 68 8113a3dce6ce
[svn r68] Added channel change functions.
gmyth/src/gmyth_livetv.c
     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) );