mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
basevideo, vp8: 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. Merging previous commit into current codebase.
This commit is contained in:
parent
6aa3eea8aa
commit
9b1ee36328
7 changed files with 29 additions and 2 deletions
|
@ -11,7 +11,8 @@ libgstvp8_la_CFLAGS = \
|
|||
$(GST_PLUGINS_BAD_CFLAGS) \
|
||||
$(GST_PLUGINS_BASE_CFLAGS) \
|
||||
$(GST_BASE_CFLAGS) \
|
||||
$(GST_CFLAGS)
|
||||
$(GST_CFLAGS) \
|
||||
-DGST_USE_UNSTABLE_API
|
||||
libgstvp8_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
libgstvp8_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS)
|
||||
libgstvp8_la_LIBADD += $(GST_PLUGINS_BASE_LIBS) -lgsttag-@GST_MAJORMINOR@ -lgstvideo-@GST_MAJORMINOR@
|
||||
|
|
|
@ -20,7 +20,8 @@ libgstbasevideo_@GST_MAJORMINOR@include_HEADERS = \
|
|||
|
||||
libgstbasevideo_@GST_MAJORMINOR@_la_CFLAGS = \
|
||||
$(GST_PLUGINS_BAD_CFLAGS) \
|
||||
$(GST_PLUGINS_BASE_CFLAGS) -DGST_USE_UNSTABLE_API \
|
||||
$(GST_PLUGINS_BASE_CFLAGS) \
|
||||
-DGST_USE_UNSTABLE_API \
|
||||
$(GST_CFLAGS)
|
||||
libgstbasevideo_@GST_MAJORMINOR@_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) -lgstvideo-@GST_MAJORMINOR@
|
||||
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