mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
wasapi: Minor fixes for debug logging
This commit is contained in:
parent
1019537344
commit
16b9e1e444
1 changed files with 3 additions and 3 deletions
|
@ -423,7 +423,7 @@ gst_wasapi_util_get_devices (GstElement * self, gboolean active,
|
||||||
hr = IAudioClient_GetMixFormat (client, &format);
|
hr = IAudioClient_GetMixFormat (client, &format);
|
||||||
if (hr != S_OK || format == NULL) {
|
if (hr != S_OK || format == NULL) {
|
||||||
gchar *msg = gst_wasapi_util_hresult_to_string (hr);
|
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);
|
g_free (msg);
|
||||||
goto next;
|
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 */
|
/* Too many channels, have to assume that they are all non-positional */
|
||||||
if (nChannels > G_N_ELEMENTS (wasapi_to_gst_pos)) {
|
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);
|
nChannels);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Too many bits in the channel mask, and the bits don't match nChannels */
|
/* 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) {
|
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);
|
"non-positional", dwChannelMask);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue