GNOME Bugzilla – Bug 780302
Build failures when Gstreamer is built with --disable-gst-debug
Last modified: 2017-04-07 11:17:02 UTC
When Gstreamer is built with --disable-gst-debug, gstreamer-vaapi fails with following errors. gstvaapidecode.c: In function 'gst_vaapidecode_init': gstvaapidecode.c:52:25: error: 'gst_debug_vaapidecode' undeclared (first use in this function) #define GST_CAT_DEFAULT gst_debug_vaapidecode ^ gstvaapidecode.c:1365:63: note: in expansion of macro 'GST_CAT_DEFAULT' gst_vaapi_plugin_base_init (GST_VAAPI_PLUGIN_BASE (decode), GST_CAT_DEFAULT); ^ gstvaapidecode.c:52:25: note: each undeclared identifier is reported only once for each function it appears in #define GST_CAT_DEFAULT gst_debug_vaapidecode ^ gstvaapidecode.c:1365:63: note: in expansion of macro 'GST_CAT_DEFAULT' gst_vaapi_plugin_base_init (GST_VAAPI_PLUGIN_BASE (decode), GST_CAT_DEFAULT); ^ gstvaapipostproc.c: In function 'gst_vaapipostproc_init': gstvaapipostproc.c:52:25: error: 'gst_debug_vaapipostproc' undeclared (first use in this function) #define GST_CAT_DEFAULT gst_debug_vaapipostproc ^ gstvaapipostproc.c:1811:7: note: in expansion of macro 'GST_CAT_DEFAULT' GST_CAT_DEFAULT); ^ gstvaapipostproc.c:52:25: note: each undeclared identifier is reported only once for each function it appears in #define GST_CAT_DEFAULT gst_debug_vaapipostproc ^ gstvaapipostproc.c:1811:7: note: in expansion of macro 'GST_CAT_DEFAULT' GST_CAT_DEFAULT); ^ make[4]: *** [libgstvaapi_la-gstvaapidecode.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [libgstvaapi_la-gstvaapipostproc.lo] Error 1 This build issue is detected by Buildroot autobuilders: http://autobuild.buildroot.net/?reason=gst1-vaapi-1.10.3
Created attachment 348330 [details] [review] plugins: when debug disabled, default category is NULL As in gstreamer-vaapi a common base class is used, the specific default category is passed to the base-plugin initializator, thus the log messages are categorized with the used plugin. Nonetheless, when the gst-debug is disabled in compilation time, it is needed to pass NULL to the base-plugin initializator. This patch does that.
Rahul, does this patch works for you?
It works for me. Thanks, Rahul
Attachment 348330 [details] pushed as 1522170 - plugins: when debug disabled, default category is NULL