[vlc-commits] pulse: use libvlc-provisioned application infos (fixes #8706)
Rémi Denis-Courmont
git at videolan.org
Sun Jun 16 10:35:00 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 16 11:12:06 2013 +0300| [3bd1fcda25b7d5d7f1face1f31471b134f677ec0] | committer: Rémi Denis-Courmont
pulse: use libvlc-provisioned application infos (fixes #8706)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3bd1fcda25b7d5d7f1face1f31471b134f677ec0
---
modules/audio_output/vlcpulse.c | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
diff --git a/modules/audio_output/vlcpulse.c b/modules/audio_output/vlcpulse.c
index f00775a..02c9ff1 100644
--- a/modules/audio_output/vlcpulse.c
+++ b/modules/audio_output/vlcpulse.c
@@ -104,10 +104,29 @@ pa_context *vlc_pa_connect (vlc_object_t *obj, pa_threaded_mainloop **mlp)
pa_proplist *props = pa_proplist_new ();
if (likely(props != NULL))
{
- pa_proplist_sets (props, PA_PROP_APPLICATION_NAME, ua);
- pa_proplist_sets (props, PA_PROP_APPLICATION_ID, "org.VideoLAN.VLC");
- pa_proplist_sets (props, PA_PROP_APPLICATION_VERSION, PACKAGE_VERSION);
- pa_proplist_sets (props, PA_PROP_APPLICATION_ICON_NAME, PACKAGE_NAME);
+ char *str;
+
+ if (ua != NULL)
+ pa_proplist_sets (props, PA_PROP_APPLICATION_NAME, ua);
+
+ str = var_InheritString (obj, "app-id");
+ if (str != NULL)
+ {
+ pa_proplist_sets (props, PA_PROP_APPLICATION_ID, str);
+ free (str);
+ }
+ str = var_InheritString (obj, "app-version");
+ if (str != NULL)
+ {
+ pa_proplist_sets (props, PA_PROP_APPLICATION_VERSION, str);
+ free (str);
+ }
+ str = var_InheritString (obj, "app-icon-name");
+ if (str != NULL)
+ {
+ pa_proplist_sets (props, PA_PROP_APPLICATION_ICON_NAME, str);
+ free (str);
+ }
//pa_proplist_sets (props, PA_PROP_APPLICATION_LANGUAGE, _("C"));
pa_proplist_sets (props, PA_PROP_APPLICATION_LANGUAGE,
setlocale (LC_MESSAGES, NULL));
More information about the vlc-commits
mailing list