ext/ffmpeg/gstffmpeg.c: Fix compile with debug disabled (#165250).
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Thu, 27 Jan 2005 10:21:07 +0000 (10:21 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Thu, 27 Jan 2005 10:21:07 +0000 (10:21 +0000)
Original commit message from CVS:
* ext/ffmpeg/gstffmpeg.c: (plugin_init):
Fix compile with debug disabled (#165250).

ChangeLog
ext/ffmpeg/gstffmpeg.c

index 1b0c4066c4dfe03519d952e91a0c2380ab8af47e..2161f59b00ffbcaf030aaa971b5d922c65b75ea8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-27  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
+       * ext/ffmpeg/gstffmpeg.c: (plugin_init):
+         Fix compile with debug disabled (#165250).
+
 2005-01-25  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
 
        * ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_peek):
index caf23992c9429d8fce7ad944ac12f64cd30db780..eb3b4299c7ddd963591fd674430f7cc338ec37f7 100644 (file)
@@ -37,6 +37,7 @@
 
 GST_DEBUG_CATEGORY (ffmpeg_debug);
 
+#ifndef GST_DISABLE_GST_DEBUG
 static void
 gst_ffmpeg_log_callback (void * ptr, int level, const char * fmt, va_list vl)
 {
@@ -62,6 +63,7 @@ gst_ffmpeg_log_callback (void * ptr, int level, const char * fmt, va_list vl)
 
   gst_debug_log_valist (ffmpeg_debug, gst_level, "", "", 0, NULL, fmt, vl);
 }
+#endif
 
 static gboolean
 plugin_init (GstPlugin * plugin)
@@ -70,7 +72,9 @@ plugin_init (GstPlugin * plugin)
     return FALSE;
 
   GST_DEBUG_CATEGORY_INIT (ffmpeg_debug, "ffmpeg", 0, "FFmpeg elements");
+#ifndef GST_DISABLE_GST_DEBUG
   av_log_set_callback (gst_ffmpeg_log_callback);
+#endif
   av_register_all ();
 
   gst_ffmpegenc_register (plugin);