add tdm_output_get_pipe function