Skip to content
Snippets Groups Projects
Commit ed436a34 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

pulse: print server info in debug

parent 75510b03
No related branches found
No related tags found
1 merge request!4750pulse: print server info in debug
Pipeline #423882 passed with warnings with stage
in 17 minutes and 24 seconds
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment