just make it compile with --disable-gst-debug.

Original commit message from CVS:
just make it compile with --disable-gst-debug.
This commit is contained in:
Edgard Lima 2006-04-24 18:51:15 +00:00
parent 66547285fe
commit fab43dc01e
2 changed files with 9 additions and 2 deletions

View file

@ -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

View 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;