Function rs2_pipeline_get_active_profile

Function Documentation

rs2_pipeline_profile *rs2_pipeline_get_active_profile(rs2_pipeline *pipe, rs2_error **error)

Return the active device and streams profiles, used by the pipeline. The pipeline streams profiles are selected during start(). The method returns a valid result only when the pipeline is active - between calls to start() and stop(). After stop() is called, the pipeline doesn’t own the device, thus, the pipeline selected device may change in subsequent activations.

Parameters:
  • pipe[in] a pointer to an instance of the pipeline

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

The actual pipeline device and streams profile, which was successfully configured to the streaming device on start.