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).
This commit is contained in:
Ronald S. Bultje 2005-01-27 10:21:07 +00:00
parent ca9e8d1988
commit 97df4afdb8
2 changed files with 9 additions and 0 deletions

View file

@ -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> 2005-01-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_peek): * ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_peek):

View file

@ -37,6 +37,7 @@
GST_DEBUG_CATEGORY (ffmpeg_debug); GST_DEBUG_CATEGORY (ffmpeg_debug);
#ifndef GST_DISABLE_GST_DEBUG
static void static void
gst_ffmpeg_log_callback (void * ptr, int level, const char * fmt, va_list vl) 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); gst_debug_log_valist (ffmpeg_debug, gst_level, "", "", 0, NULL, fmt, vl);
} }
#endif
static gboolean static gboolean
plugin_init (GstPlugin * plugin) plugin_init (GstPlugin * plugin)
@ -70,7 +72,9 @@ plugin_init (GstPlugin * plugin)
return FALSE; return FALSE;
GST_DEBUG_CATEGORY_INIT (ffmpeg_debug, "ffmpeg", 0, "FFmpeg elements"); GST_DEBUG_CATEGORY_INIT (ffmpeg_debug, "ffmpeg", 0, "FFmpeg elements");
#ifndef GST_DISABLE_GST_DEBUG
av_log_set_callback (gst_ffmpeg_log_callback); av_log_set_callback (gst_ffmpeg_log_callback);
#endif
av_register_all (); av_register_all ();
gst_ffmpegenc_register (plugin); gst_ffmpegenc_register (plugin);