mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
pulsesink: Only include the server name in the context name if it's not NULL
This commit is contained in:
parent
7116fff3c5
commit
998adeb974
1 changed files with 6 additions and 2 deletions
|
@ -438,8 +438,12 @@ gst_pulseringbuffer_open_device (GstRingBuffer * buf)
|
||||||
g_assert (!pbuf->stream);
|
g_assert (!pbuf->stream);
|
||||||
|
|
||||||
g_assert (psink->client_name);
|
g_assert (psink->client_name);
|
||||||
|
|
||||||
|
if (psink->server)
|
||||||
pbuf->context_name = g_strdup_printf ("%s@%s", psink->client_name,
|
pbuf->context_name = g_strdup_printf ("%s@%s", psink->client_name,
|
||||||
GST_STR_NULL (psink->server));
|
psink->server);
|
||||||
|
else
|
||||||
|
pbuf->context_name = g_strdup (psink->client_name);
|
||||||
|
|
||||||
pa_threaded_mainloop_lock (psink->mainloop);
|
pa_threaded_mainloop_lock (psink->mainloop);
|
||||||
g_mutex_lock (pa_ring_buffer_mutex);
|
g_mutex_lock (pa_ring_buffer_mutex);
|
||||||
|
|
Loading…
Reference in a new issue