Commit 97df4afd authored by Ronald S. Bultje's avatar Ronald S. Bultje

ext/ffmpeg/gstffmpeg.c: Fix compile with debug disabled (#165250).

Original commit message from CVS:
* ext/ffmpeg/gstffmpeg.c: (plugin_init):
Fix compile with debug disabled (#165250).
parent ca9e8d19
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):
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment