gst/ffmpegcolorspace/gstffmpegcodecmap.c: Only convert caps to string when debug...
authorWim Taymans <wim.taymans@gmail.com>
Wed, 5 Nov 2008 12:20:21 +0000 (12:20 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 5 Nov 2008 12:20:21 +0000 (12:20 +0000)
Original commit message from CVS:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps):
Only convert caps to string when debug is enabled.

ChangeLog
gst/ffmpegcolorspace/gstffmpegcodecmap.c

index 7e3b1d6..10fc728 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-05  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       * gst/ffmpegcolorspace/gstffmpegcodecmap.c:
+       (gst_ffmpeg_pixfmt_to_caps):
+       Only convert caps to string when debug is enabled.
+
 2008-11-04  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        * ext/theora/gsttheoradec.h:
index 1d43664..0265c5b 100644 (file)
@@ -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);
   }