build: don't compile HEVC encoder if not supported
authorAlban Browaeys <prahal@yahoo.com>
Wed, 27 May 2015 20:49:18 +0000 (23:49 +0300)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 27 May 2015 20:49:18 +0000 (23:49 +0300)
Fix:
(gst-plugin-scanner:16681): GStreamer-WARNING **: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so': /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so: undefined symbol: gst_vaapi_encoder_h265_get_default_properties

https://bugzilla.gnome.org/show_bug.cgi?id=749954

Signed-off-by: Alban Browaeys <prahal@yahoo.com>
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
gst/vaapi/Makefile.am

index 75cf214..1f7135b 100644 (file)
@@ -81,14 +81,12 @@ libgstvaapi_enc_source_c =  \
        gstvaapiencode.c        \
        gstvaapiencode_h264.c   \
        gstvaapiencode_mpeg2.c  \
-       gstvaapiencode_h265.c   \
        $(NULL)
 
 libgstvaapi_enc_source_h =     \
        gstvaapiencode.h        \
        gstvaapiencode_h264.h   \
        gstvaapiencode_mpeg2.h  \
-       gstvaapiencode_h265.h   \
        $(NULL)
 
 if USE_ENCODERS
@@ -110,6 +108,16 @@ libgstvaapi_source_c += $(libgstvaapi_vp8enc_source_c)
 libgstvaapi_source_h += $(libgstvaapi_vp8enc_source_h)
 endif
 
+
+libgstvaapi_h265enc_source_c = gstvaapiencode_h265.c
+libgstvaapi_h265enc_source_h = gstvaapiencode_h265.h
+if USE_H265_ENCODER
+libgstvaapi_source_c += $(libgstvaapi_h265enc_source_c)
+libgstvaapi_source_h += $(libgstvaapi_h265enc_source_h)
+endif
+
+
+
 libgstvaapi_egl_source_c =
 libgstvaapi_egl_source_h =
 
@@ -247,6 +255,8 @@ EXTRA_DIST = \
        $(libgstvaapi_jpegenc_source_h)  \
        $(libgstvaapi_vp8enc_source_c)   \
        $(libgstvaapi_vp8enc_source_h)   \
+       $(libgstvaapi_h265enc_source_c)  \
+       $(libgstvaapi_h265enc_source_h)  \
        $(libgstvaapi_egl_source_c)     \
        $(libgstvaapi_egl_source_h)     \
        $(libgstvaapi_1_2p_source_c)     \