build: don't compile HEVC encoder if not supported

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>
This commit is contained in:
Alban Browaeys 2015-05-27 23:49:18 +03:00 committed by Sreerenj Balachandran
parent 3857d5fce1
commit 22f4d8b768

View 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) \