0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

Update information provided by pulseaudio plugin to pulse.

The plugin now uses the generic name "OBS" to identify itself
to pulseaudio.

Until now the pulseaudio plugin used a placeholder icon for the
mixer to display. Now that we have a real icon installed to the
system we can use that instead.
This commit is contained in:
fryshorts 2014-08-02 16:51:23 +02:00
parent 84c7e665bd
commit ca1ddd4c62

View File

@ -51,8 +51,8 @@ static pa_proplist *pulse_properties()
{ {
pa_proplist *p = pa_proplist_new(); pa_proplist *p = pa_proplist_new();
pa_proplist_sets(p, PA_PROP_APPLICATION_NAME, "OBS Studio"); pa_proplist_sets(p, PA_PROP_APPLICATION_NAME, "OBS");
pa_proplist_sets(p, PA_PROP_APPLICATION_ICON_NAME, "application-exit"); pa_proplist_sets(p, PA_PROP_APPLICATION_ICON_NAME, "obs");
pa_proplist_sets(p, PA_PROP_MEDIA_ROLE, "production"); pa_proplist_sets(p, PA_PROP_MEDIA_ROLE, "production");
return p; return p;
@ -67,7 +67,7 @@ static void pulse_init_context()
pa_proplist *p = pulse_properties(); pa_proplist *p = pulse_properties();
pulse_context = pa_context_new_with_proplist( pulse_context = pa_context_new_with_proplist(
pa_threaded_mainloop_get_api(pulse_mainloop), "OBS Studio", p); pa_threaded_mainloop_get_api(pulse_mainloop), "OBS", p);
pa_context_set_state_callback(pulse_context, pa_context_set_state_callback(pulse_context,
pulse_context_state_changed, NULL); pulse_context_state_changed, NULL);