summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-03-10 18:51:14 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-03-10 18:54:59 +0530
commit16b9e1e444519fc72bbb42f76f2dc1e386e5a1be (patch)
treeed6d958ec9c191c5366318715a6bdeb73349eee2
parent10195373442501693682ddaf651125cfeea9aa7b (diff)
wasapi: Minor fixes for debug logging
-rw-r--r--sys/wasapi/gstwasapiutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/wasapi/gstwasapiutil.c b/sys/wasapi/gstwasapiutil.c
index be005af6a..5d664df60 100644
--- a/sys/wasapi/gstwasapiutil.c
+++ b/sys/wasapi/gstwasapiutil.c
@@ -423,7 +423,7 @@ gst_wasapi_util_get_devices (GstElement * self, gboolean active,
hr = IAudioClient_GetMixFormat (client, &format);
if (hr != S_OK || format == NULL) {
gchar *msg = gst_wasapi_util_hresult_to_string (hr);
- GST_ERROR_OBJECT ("GetMixFormat failed on %s: %s", strid, msg);
+ GST_ERROR_OBJECT (self, "GetMixFormat failed on %s: %s", strid, msg);
g_free (msg);
goto next;
}
@@ -714,14 +714,14 @@ gst_wasapi_util_waveformatex_to_channel_mask (WAVEFORMATEXTENSIBLE * format,
/* Too many channels, have to assume that they are all non-positional */
if (nChannels > G_N_ELEMENTS (wasapi_to_gst_pos)) {
- GST_INFO ("wasapi: got too many (%i) channels, assuming non-positional",
+ GST_INFO ("Got too many (%i) channels, assuming non-positional",
nChannels);
goto out;
}
/* Too many bits in the channel mask, and the bits don't match nChannels */
if (dwChannelMask >> (G_N_ELEMENTS (wasapi_to_gst_pos) + 1) != 0) {
- GST_WARNING ("wasapi: too many bits in channel mask (%lu), assuming "
+ GST_WARNING ("Too many bits in channel mask (%lu), assuming "
"non-positional", dwChannelMask);
goto out;
}