static int cmyth_livetv_chain_select(cmyth_recorder_t rec, struct timeval *timeout) { cmyth_file_t file; int rc; cmyth_dbg(CMYTH_DBG_DEBUG, "%s [%s:%d]: (trace) {\n", __FUNCTION__, __FILE__, __LINE__); if (!rec || !rec->rec_connected) { return -EINVAL; } if ((file=cmyth_livetv_current_file(rec)) == NULL) { return -1; } rc = cmyth_file_select(file, timeout); ref_release(file); cmyth_dbg(CMYTH_DBG_DEBUG, "%s [%s:%d]: (trace) }\n", __FUNCTION__, __FILE__, __LINE__); return rc; }
static int cmyth_livetv_chain_select(cmyth_recorder_t rec, struct timeval *timeout) { if (!rec) { cmyth_dbg(CMYTH_DBG_ERROR, "%s: no connection\n", __FUNCTION__); return -EINVAL; } return cmyth_file_select(rec->rec_livetv_file, timeout); }