mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
vkh264dec: GST_USE_UNSTABLE_API for plugin compilation
The code to include H264 decoder base class header wrongly disabled the unstable API message. This patch fixes it by setting it as a compilation define of the plugin.¡ Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6055>
This commit is contained in:
parent
2c660ee8f5
commit
4949c6d153
2 changed files with 3 additions and 3 deletions
|
@ -34,9 +34,11 @@ vulkan_plugin_enum_headers = files(
|
|||
)
|
||||
|
||||
extra_deps = []
|
||||
extra_args = []
|
||||
if vulkan_conf.get('GST_VULKAN_HAVE_VIDEO_EXTENSIONS') == 1
|
||||
vulkan_sources += files('vkh264dec.c')
|
||||
extra_deps += gstcodecs_dep
|
||||
extra_args += ['-DGST_USE_UNSTABLE_API']
|
||||
endif
|
||||
|
||||
vulkan_plugin_enums = gnome.mkenums_simple('gstvulkan-plugins-enumtypes',
|
||||
|
@ -46,7 +48,7 @@ vulkan_plugin_enums = gnome.mkenums_simple('gstvulkan-plugins-enumtypes',
|
|||
|
||||
gstvulkan_plugin = library('gstvulkan',
|
||||
vulkan_sources, vulkan_compiled_shader_sources, vulkan_plugin_enums,
|
||||
c_args : gst_plugins_bad_args,
|
||||
c_args : gst_plugins_bad_args + extra_args,
|
||||
objc_args : gst_plugins_bad_args,
|
||||
link_args : noseh_link_args,
|
||||
include_directories : [configinc],
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define GST_USE_UNSTABLE_API
|
||||
#include <gst/codecs/gsth264decoder.h>
|
||||
#undef GST_USE_UNSTABLE_API
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue