From: Wim Taymans Date: Wed, 5 Nov 2008 12:20:21 +0000 (+0000) Subject: gst/ffmpegcolorspace/gstffmpegcodecmap.c: Only convert caps to string when debug... X-Git-Tag: GIT_CONVERSION~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9ae8db09403a2219a68e8bbeb2a0ac8bc73c10f;p=platform%2Fupstream%2Fgst-plugins-base.git 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. --- diff --git a/ChangeLog b/ChangeLog index 7e3b1d6..10fc728 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 1d43664..0265c5b 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); }