From 998adeb974f66862b2a7f1f3c600772da0c2ef5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 19 Aug 2010 18:38:39 +0200 Subject: [PATCH] pulsesink: Only include the server name in the context name if it's not NULL --- ext/pulse/pulsesink.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index fcc1d172f2..eec5f8ec5f 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -438,8 +438,12 @@ gst_pulseringbuffer_open_device (GstRingBuffer * buf) g_assert (!pbuf->stream); g_assert (psink->client_name); - pbuf->context_name = g_strdup_printf ("%s@%s", psink->client_name, - GST_STR_NULL (psink->server)); + + if (psink->server) + pbuf->context_name = g_strdup_printf ("%s@%s", psink->client_name, + psink->server); + else + pbuf->context_name = g_strdup (psink->client_name); pa_threaded_mainloop_lock (psink->mainloop); g_mutex_lock (pa_ring_buffer_mutex);