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:
Víctor Manuel Jáquez Leal 2024-02-05 14:18:28 +01:00
parent 2c660ee8f5
commit 4949c6d153
2 changed files with 3 additions and 3 deletions

View file

@ -34,9 +34,11 @@ vulkan_plugin_enum_headers = files(
) )
extra_deps = [] extra_deps = []
extra_args = []
if vulkan_conf.get('GST_VULKAN_HAVE_VIDEO_EXTENSIONS') == 1 if vulkan_conf.get('GST_VULKAN_HAVE_VIDEO_EXTENSIONS') == 1
vulkan_sources += files('vkh264dec.c') vulkan_sources += files('vkh264dec.c')
extra_deps += gstcodecs_dep extra_deps += gstcodecs_dep
extra_args += ['-DGST_USE_UNSTABLE_API']
endif endif
vulkan_plugin_enums = gnome.mkenums_simple('gstvulkan-plugins-enumtypes', 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', gstvulkan_plugin = library('gstvulkan',
vulkan_sources, vulkan_compiled_shader_sources, vulkan_plugin_enums, 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, objc_args : gst_plugins_bad_args,
link_args : noseh_link_args, link_args : noseh_link_args,
include_directories : [configinc], include_directories : [configinc],

View file

@ -19,9 +19,7 @@
#pragma once #pragma once
#define GST_USE_UNSTABLE_API
#include <gst/codecs/gsth264decoder.h> #include <gst/codecs/gsth264decoder.h>
#undef GST_USE_UNSTABLE_API
G_BEGIN_DECLS G_BEGIN_DECLS