waveformsink: fix mem leak of debug msg 50/93250/2 accepted/tizen/3.0/common/20161114.110639 accepted/tizen/common/20161025.155113 accepted/tizen/common/20161109.140253 accepted/tizen/ivi/20161109.002836 accepted/tizen/mobile/20161109.002525 accepted/tizen/tv/20161109.002701 accepted/tizen/wearable/20161109.002753 submit/tizen/20161025.104308 submit/tizen/20161108.054351 submit/tizen_3.0_common/20161104.104000
authorEunhae Choi <eunhae1.choi@samsung.com>
Fri, 21 Oct 2016 08:58:51 +0000 (17:58 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Fri, 21 Oct 2016 09:27:08 +0000 (18:27 +0900)
Change-Id: I76a5e82b8813ecbf79e6930c124e0d7e9c3cb0c1
Signed-off-by: Eunhae Choi <eunhae1.choi@samsung.com>
sys/waveform/gstwaveformsink.c

index 9341475..d66892a 100644 (file)
@@ -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;
 }