Ejemplo n.º 1
0
int
cmyth_livetv_select(cmyth_recorder_t rec, struct timeval *timeout)
{
	int rtrn;
	
	if(rec->rec_conn->conn_version >= 26)
		rtrn = cmyth_livetv_chain_select(rec, timeout);
	else
		rtrn = cmyth_ringbuf_select(rec, timeout);

	return rtrn;
}
Ejemplo n.º 2
0
int
cmyth_livetv_select(cmyth_recorder_t rec, struct timeval *timeout)
{
    int rtrn;

    if (!rec->rec_connected) {
        return -1;
    }

    if (rec->rec_conn->conn_version >= 26) {
        rtrn = cmyth_livetv_chain_select(rec, timeout);
    } else {
        rtrn = cmyth_ringbuf_select(rec, timeout);
    }

    return rtrn;
}