From 23798da5338d134689ec085d8c4a92c574c6ea3b Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Fri, 21 Oct 2016 17:58:51 +0900 Subject: [PATCH] waveformsink: fix mem leak of debug msg Change-Id: I76a5e82b8813ecbf79e6930c124e0d7e9c3cb0c1 Signed-off-by: Eunhae Choi --- sys/waveform/gstwaveformsink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/waveform/gstwaveformsink.c b/sys/waveform/gstwaveformsink.c index 934147555..d66892a0f 100644 --- a/sys/waveform/gstwaveformsink.c +++ b/sys/waveform/gstwaveformsink.c @@ -216,7 +216,7 @@ gst_waveform_sink_getcaps (GstBaseSink * bsink, GstCaps * filter) caps = gst_caps_new_empty (); - /* create a caps for all wave formats supported by the device + /* create a caps for all wave formats supported by the device starting by the best quality format */ if (wocaps.dwFormats & WAVE_FORMAT_96S16) { caps_temp = gst_waveform_sink_create_caps (96000, 2, GST_AUDIO_NE (S16)); @@ -322,8 +322,8 @@ gst_waveform_sink_getcaps (GstBaseSink * bsink, GstCaps * filter) wfsink->cached_caps = gst_caps_ref (caps); } - GST_CAT_LOG_OBJECT (waveformsink_debug, wfsink, "Returning caps %s", - gst_caps_to_string (caps)); + GST_CAT_LOG_OBJECT (waveformsink_debug, wfsink, + "Returning caps %" GST_PTR_FORMAT, caps); return caps; } -- 2.34.1