just make it compile with --disable-gst-debug.
authorEdgard Lima <edgard.lima@indt.org.br>
Mon, 24 Apr 2006 18:51:15 +0000 (18:51 +0000)
committerEdgard Lima <edgard.lima@indt.org.br>
Mon, 24 Apr 2006 18:51:15 +0000 (18:51 +0000)
Original commit message from CVS:
just make it compile with --disable-gst-debug.

ChangeLog
ext/ffmpeg/gstffmpegenc.c

index 57b61b4..edc0208 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-24  Edgard Lima <edgard.lima@indt.org.br>
+
+       * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_chain_video):
+       just make it compile with --disable-gst-debug.
+
 2006-04-21  Andy Wingo  <wingo@pobox.com>
 
        * configure.ac (GST_MAJORMINOR): Drop the required gstreamer
index 5f1cef7..890ddc4 100644 (file)
@@ -506,8 +506,6 @@ gst_ffmpegenc_chain_video (GstPad * pad, GstBuffer * inbuf)
 {
   GstFFMpegEnc *ffmpegenc = (GstFFMpegEnc *) (GST_PAD_PARENT (pad));
   GstBuffer *outbuf;
-  GstFFMpegEncClass *oclass =
-      (GstFFMpegEncClass *) (G_OBJECT_GET_CLASS (ffmpegenc));
   gint ret_size = 0, frame_size;
 
   GST_DEBUG_OBJECT (ffmpegenc,
@@ -530,8 +528,12 @@ gst_ffmpegenc_chain_video (GstPad * pad, GstBuffer * inbuf)
       GST_BUFFER_SIZE (outbuf), ffmpegenc->picture);
 
   if (ret_size < 0) {
+#ifndef GST_DISABLE_GST_DEBUG
+    GstFFMpegEncClass *oclass =
+      (GstFFMpegEncClass *) (G_OBJECT_GET_CLASS (ffmpegenc));      
     GST_ERROR_OBJECT (ffmpegenc,
         "ffenc_%s: failed to encode buffer", oclass->in_plugin->name);
+#endif /* GST_DISABLE_GST_DEBUG */
     gst_buffer_unref (inbuf);
     gst_buffer_unref (outbuf);
     return GST_FLOW_OK;