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

Merge pull request #226 from fryshorts/pulse-input

Update information provided by pulseaudio plugin to pulse.
This commit is contained in:
Jim 2014-08-05 12:52:18 -07:00
commit ab34864445

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);