[vlc-commits] [Git][videolan/vlc][master] pulse: print server info in debug

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Sat Jan 6 15:54:37 UTC 2024



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
ed436a34 by Rémi Denis-Courmont at 2024-01-06T15:40:33+00:00
pulse: print server info in debug

- - - - -


1 changed file:

- modules/audio_output/pulse.c


Changes:

=====================================
modules/audio_output/pulse.c
=====================================
@@ -1150,6 +1150,16 @@ fail:
     return VLC_EGENERIC;
 }
 
+static void server_info_cb(pa_context *ctx, const pa_server_info *info,
+                           void *userdata)
+{
+    audio_output_t *aout = userdata;
+
+    msg_Dbg(aout, "server %s version %s on %s@%s", info->server_name,
+            info->server_version, info->user_name, info->host_name);
+    (void) ctx;
+}
+
 /**
  * Removes a PulseAudio playback stream
  */
@@ -1216,6 +1226,10 @@ static int Open(vlc_object_t *obj)
     aout->device_select = StreamMove;
 
     pa_threaded_mainloop_lock(sys->mainloop);
+    op = pa_context_get_server_info(sys->context, server_info_cb, aout);
+    if (likely(op != NULL))
+        pa_operation_unref(op);
+
     /* Sinks (output devices) list */
     op = pa_context_get_sink_info_list(sys->context, sink_add_cb, aout);
     if (likely(op != NULL))



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ed436a3449e8d2254c05f174a5ade9cfa93b4ac2

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ed436a3449e8d2254c05f174a5ade9cfa93b4ac2
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list