fix(pulseaudio): get default sink on new events when using default
This commit is contained in:
parent
224ffa97c1
commit
5f88cd44c7
1 changed files with 2 additions and 2 deletions
|
@ -124,8 +124,8 @@ int pulseaudio::process_events() {
|
||||||
if (!spec_s_name.empty()) {
|
if (!spec_s_name.empty()) {
|
||||||
o = pa_context_get_sink_info_by_name(m_context, spec_s_name.c_str(), sink_info_callback, this);
|
o = pa_context_get_sink_info_by_name(m_context, spec_s_name.c_str(), sink_info_callback, this);
|
||||||
wait_loop(o, m_mainloop);
|
wait_loop(o, m_mainloop);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
// get default sink
|
// get default sink
|
||||||
case evtype::REMOVE:
|
case evtype::REMOVE:
|
||||||
o = pa_context_get_server_info(m_context, get_default_sink_callback, this);
|
o = pa_context_get_server_info(m_context, get_default_sink_callback, this);
|
||||||
|
@ -138,7 +138,7 @@ int pulseaudio::process_events() {
|
||||||
m_log.warn("pulseaudio: using default sink %s", s_name);
|
m_log.warn("pulseaudio: using default sink %s", s_name);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
update_volume(o);
|
update_volume(o);
|
||||||
m_events.pop();
|
m_events.pop();
|
||||||
|
|
Loading…
Reference in a new issue