From d9ae8db09403a2219a68e8bbeb2a0ac8bc73c10f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 5 Nov 2008 12:20:21 +0000 Subject: [PATCH] gst/ffmpegcolorspace/gstffmpegcodecmap.c: Only convert caps to string when debug is enabled. Original commit message from CVS: * gst/ffmpegcolorspace/gstffmpegcodecmap.c: (gst_ffmpeg_pixfmt_to_caps): Only convert caps to string when debug is enabled. --- ChangeLog | 6 ++++++ gst/ffmpegcolorspace/gstffmpegcodecmap.c | 10 ++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e3b1d69c0..10fc72887c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-05 Wim Taymans + + * gst/ffmpegcolorspace/gstffmpegcodecmap.c: + (gst_ffmpeg_pixfmt_to_caps): + Only convert caps to string when debug is enabled. + 2008-11-04 Wim Taymans * ext/theora/gsttheoradec.h: diff --git a/gst/ffmpegcolorspace/gstffmpegcodecmap.c b/gst/ffmpegcolorspace/gstffmpegcodecmap.c index 1d43664835..0265c5b670 100644 --- a/gst/ffmpegcolorspace/gstffmpegcodecmap.c +++ b/gst/ffmpegcolorspace/gstffmpegcodecmap.c @@ -401,10 +401,7 @@ gst_ffmpeg_pixfmt_to_caps (enum PixelFormat pix_fmt, AVCodecContext * context) } if (caps != NULL) { - char *str = gst_caps_to_string (caps); - - GST_DEBUG ("caps for pix_fmt=%d: %s", pix_fmt, str); - g_free (str); + GST_DEBUG ("caps for pix_fmt=%d: %" GST_PTR_FORMAT, pix_fmt, caps); } else { GST_LOG ("No caps found for pix_fmt=%d", pix_fmt); } @@ -447,10 +444,7 @@ gst_ffmpeg_smpfmt_to_caps (enum SampleFormat sample_fmt, } if (caps != NULL) { - char *str = gst_caps_to_string (caps); - - GST_DEBUG ("caps for sample_fmt=%d: %s", sample_fmt, str); - g_free (str); + GST_DEBUG ("caps for sample_fmt=%d: %" GST_PTR_FORMAT, sample_fmt, caps); } else { GST_LOG ("No caps found for sample_fmt=%d", sample_fmt); }