summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-05-03 23:31:00 +0530
committerSebastian Dröge <sebastian@centricular.com>2017-05-08 16:02:46 +0200
commit0700b1f0b0dd6b986f232c993b20929cee69ed6a (patch)
tree9a4e6a51d12981a51bd37b750fc8912407075805
parentd826c5ad9635272b483014186996c9f3224c3ac5 (diff)
directsoundsink: Clean up some debug logging
Don't need to print the function name, gstreamer does it for you. https://bugzilla.gnome.org/show_bug.cgi?id=773681
-rw-r--r--sys/directsound/gstdirectsoundsink.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c
index 573e2b8c1..b7ec9b4e9 100644
--- a/sys/directsound/gstdirectsoundsink.c
+++ b/sys/directsound/gstdirectsoundsink.c
@@ -436,8 +436,7 @@ gst_directsound_sink_open (GstAudioSink * asink)
lpGuid = string_to_guid (dsoundsink->device_id);
if (lpGuid == NULL) {
GST_ELEMENT_ERROR (dsoundsink, RESOURCE, OPEN_READ,
- ("gst_directsound_sink_open: device set, but guid not found: %s",
- dsoundsink->device_id), (NULL));
+ ("device set but guid not found: %s", dsoundsink->device_id), (NULL));
return FALSE;
}
}
@@ -446,8 +445,7 @@ gst_directsound_sink_open (GstAudioSink * asink)
if (FAILED (hRes = DirectSoundCreate (lpGuid, &dsoundsink->pDS, NULL))) {
gchar *error_text = gst_hres_to_string (hRes);
GST_ELEMENT_ERROR (dsoundsink, RESOURCE, OPEN_READ,
- ("gst_directsound_sink_open: DirectSoundCreate: %s",
- error_text), (NULL));
+ ("DirectSoundCreate: %s", error_text), (NULL));
g_free (lpGuid);
g_free (error_text);
return FALSE;
@@ -459,8 +457,7 @@ gst_directsound_sink_open (GstAudioSink * asink)
GetDesktopWindow (), DSSCL_PRIORITY))) {
gchar *error_text = gst_hres_to_string (hRes);
GST_ELEMENT_ERROR (dsoundsink, RESOURCE, OPEN_READ,
- ("gst_directsound_sink_open: IDirectSound_SetCooperativeLevel: %s",
- error_text), (NULL));
+ ("IDirectSound_SetCooperativeLevel: %s", error_text), (NULL));
g_free (error_text);
return FALSE;
}
@@ -534,11 +531,12 @@ gst_directsound_sink_prepare (GstAudioSink * asink,
// Make the final buffer size be an integer number of segments
dsoundsink->buffer_size = spec->segsize * spec->segtotal;
- GST_INFO_OBJECT (dsoundsink,
- "GstAudioRingBufferSpec->channels: %d, GstAudioRingBufferSpec->rate: %d, GstAudioRingBufferSpec->bytes_per_sample: %d\n"
- "WAVEFORMATEX.nSamplesPerSec: %ld, WAVEFORMATEX.wBitsPerSample: %d, WAVEFORMATEX.nBlockAlign: %d, WAVEFORMATEX.nAvgBytesPerSec: %ld\n"
- "Size of dsound circular buffer=>%d\n", spec->info.channels,
- spec->info.rate, spec->info.bpf, wfx.nSamplesPerSec, wfx.wBitsPerSample,
+ GST_INFO_OBJECT (dsoundsink, "channels: %d, rate: %d, bytes_per_sample: %d"
+ " WAVEFORMATEX.nSamplesPerSec: %ld, WAVEFORMATEX.wBitsPerSample: %d,"
+ " WAVEFORMATEX.nBlockAlign: %d, WAVEFORMATEX.nAvgBytesPerSec: %ld\n"
+ "Size of dsound circular buffer=>%d\n",
+ GST_AUDIO_INFO_CHANNELS (&spec->info), GST_AUDIO_INFO_RATE (&spec->info),
+ GST_AUDIO_INFO_BPF (&spec->info), wfx.nSamplesPerSec, wfx.wBitsPerSample,
wfx.nBlockAlign, wfx.nAvgBytesPerSec, dsoundsink->buffer_size);
/* create a secondary directsound buffer */
@@ -556,8 +554,7 @@ gst_directsound_sink_prepare (GstAudioSink * asink,
if (FAILED (hRes)) {
gchar *error_text = gst_hres_to_string (hRes);
GST_ELEMENT_ERROR (dsoundsink, RESOURCE, OPEN_READ,
- ("gst_directsound_sink_prepare: IDirectSound_CreateSoundBuffer: %s",
- error_text), (NULL));
+ ("IDirectSound_CreateSoundBuffer: %s", error_text), (NULL));
g_free (error_text);
return FALSE;
}
@@ -665,7 +662,7 @@ gst_directsound_sink_write (GstAudioSink * asink, gpointer data, guint length)
err1 = gst_hres_to_string (hRes);
err2 = gst_hres_to_string (hRes2);
GST_ELEMENT_ERROR (dsoundsink, RESOURCE, OPEN_WRITE,
- ("gst_directsound_sink_write: IDirectSoundBuffer_GetStatus %s, "
+ ("IDirectSoundBuffer_GetStatus %s, "
"IDirectSoundBuffer_GetCurrentPosition: %s, dwStatus: %lu",
err2, err1, dwStatus), (NULL));
g_free (err1);