vumonitor/vumonitor.cc
/// Called when we received a PA_CONTEXT_READY
///
Called when we received a PA_CONTEXT_READY
Called when we received a PA_CONTEXT_READY
void VU_monitor::context_ready(pa_context *pc)
{
    if (m_stream) {
        LOG_ERROR(Lgr) << "CONTEXT_READY but already have stream!?";
        return;
    }
    if (not m_device_name.empty()) {
        auto op = pa_context_get_sink_info_by_name(pc, m_device_name.c_str(),
                                                   cgsi_cb, this);
        pa_operation_unref(op);
    }
    else {
        auto op = pa_context_get_server_info(pc, cgxi_cb, this);
        pa_operation_unref(op);
    }
}
void VU_monitor :: context_ready ( pa_context * pc ) { if ( m_stream ) { LOG_ERROR ( Lgr ) << " " ; return ; } if ( not m_device_name . empty ( ) ) { auto op = pa_context_get_sink_info_by_name ( pc , m_device_name . c_str ( ) , cgsi_cb , this ) ; pa_operation_unref ( op ) ; } else { auto op = pa_context_get_server_info ( pc , cgxi_cb , this ) ; pa_operation_unref ( op ) ; } }
Called when we received a PA_CONTEXT_READY
Called when we received a PA_CONTEXT_READY