mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
basevideo, schroedinger: guard unstable API with GST_USE_UNSTABLE_API
Add some guards and fat warnings to the header files with still unstable API, so people who just look at the installed headers know that it actually is unstable API.
This commit is contained in:
parent
2e6de387ac
commit
6a763f6a47
7 changed files with 27 additions and 1 deletions
|
@ -14,6 +14,7 @@ libgstschro_la_CFLAGS = \
|
|||
$(GST_CFLAGS) \
|
||||
$(GST_BASE_CFLAGS) \
|
||||
$(GST_PLUGINS_BASE_CFLAGS) \
|
||||
-DGST_USE_UNSTABLE_API \
|
||||
$(SCHRO_CFLAGS)
|
||||
libgstschro_la_LIBADD = \
|
||||
$(GST_LIBS) \
|
||||
|
|
|
@ -18,7 +18,7 @@ libgstbasevideo_@GST_MAJORMINOR@include_HEADERS = \
|
|||
gstbasevideoencoder.h \
|
||||
gstbasevideoparse.h
|
||||
|
||||
libgstbasevideo_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
|
||||
libgstbasevideo_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) -DGST_USE_UNSTABLE_API
|
||||
libgstbasevideo_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS)
|
||||
libgstbasevideo_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
||||
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
#ifndef _GST_BASE_VIDEO_CODEC_H_
|
||||
#define _GST_BASE_VIDEO_CODEC_H_
|
||||
|
||||
#ifndef GST_USE_UNSTABLE_API
|
||||
#warning "GstBaseVideoCodec is unstable API and may change in future."
|
||||
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
|
||||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <gst/video/gstbasevideoutils.h>
|
||||
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
#ifndef _GST_BASE_VIDEO_DECODER_H_
|
||||
#define _GST_BASE_VIDEO_DECODER_H_
|
||||
|
||||
#ifndef GST_USE_UNSTABLE_API
|
||||
#warning "GstBaseVideoDecoder is unstable API and may change in future."
|
||||
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
|
||||
#endif
|
||||
|
||||
#include <gst/video/gstbasevideocodec.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
#ifndef _GST_BASE_VIDEO_ENCODER_H_
|
||||
#define _GST_BASE_VIDEO_ENCODER_H_
|
||||
|
||||
#ifndef GST_USE_UNSTABLE_API
|
||||
#warning "GstBaseVideoEncoder is unstable API and may change in future."
|
||||
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
|
||||
#endif
|
||||
|
||||
#include <gst/video/gstbasevideocodec.h>
|
||||
#include <gst/video/gstbasevideoutils.h>
|
||||
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
#ifndef _GST_BASE_VIDEO_PARSE_H_
|
||||
#define _GST_BASE_VIDEO_PARSE_H_
|
||||
|
||||
#ifndef GST_USE_UNSTABLE_API
|
||||
#warning "GstBaseVideoParse is unstable API and may change in future."
|
||||
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
|
||||
#endif
|
||||
|
||||
#include <gst/video/gstbasevideocodec.h>
|
||||
#include <gst/video/gstbasevideoutils.h>
|
||||
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
#ifndef _GST_BASE_VIDEO_UTILS_H_
|
||||
#define _GST_BASE_VIDEO_UTILS_H_
|
||||
|
||||
#ifndef GST_USE_UNSTABLE_API
|
||||
#warning "The base video utils API is unstable and may change in future."
|
||||
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
|
||||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <gst/video/video.h>
|
||||
#include <gst/base/gstadapter.h>
|
||||
|
|
Loading…
Reference in a new issue