diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-07-03 16:08:38 +0100 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-06-02 19:28:15 -0700 |
commit | 9b1ee36328d531bfa0720c075a1f9c56a559556c (patch) | |
tree | 5767b1e085638125a24c280ddbb948d21318b0e5 /gst-libs | |
parent | 6aa3eea8aac0fb889b8afb60c33da1d589810f73 (diff) |
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.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/video/Makefile.am | 3 | ||||
-rw-r--r-- | gst-libs/gst/video/gstbasevideocodec.h | 5 | ||||
-rw-r--r-- | gst-libs/gst/video/gstbasevideodecoder.h | 5 | ||||
-rw-r--r-- | gst-libs/gst/video/gstbasevideoencoder.h | 5 | ||||
-rw-r--r-- | gst-libs/gst/video/gstbasevideoparse.h | 5 | ||||
-rw-r--r-- | gst-libs/gst/video/gstbasevideoutils.h | 5 |
6 files changed, 27 insertions, 1 deletions
diff --git a/gst-libs/gst/video/Makefile.am b/gst-libs/gst/video/Makefile.am index baf42094d..5072f1df6 100644 --- a/gst-libs/gst/video/Makefile.am +++ b/gst-libs/gst/video/Makefile.am @@ -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) diff --git a/gst-libs/gst/video/gstbasevideocodec.h b/gst-libs/gst/video/gstbasevideocodec.h index f4a1cf95b..b6acf62ee 100644 --- a/gst-libs/gst/video/gstbasevideocodec.h +++ b/gst-libs/gst/video/gstbasevideocodec.h @@ -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> diff --git a/gst-libs/gst/video/gstbasevideodecoder.h b/gst-libs/gst/video/gstbasevideodecoder.h index 13b588605..20d6f0a7a 100644 --- a/gst-libs/gst/video/gstbasevideodecoder.h +++ b/gst-libs/gst/video/gstbasevideodecoder.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 diff --git a/gst-libs/gst/video/gstbasevideoencoder.h b/gst-libs/gst/video/gstbasevideoencoder.h index 761a9d707..436d904fe 100644 --- a/gst-libs/gst/video/gstbasevideoencoder.h +++ b/gst-libs/gst/video/gstbasevideoencoder.h @@ -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> diff --git a/gst-libs/gst/video/gstbasevideoparse.h b/gst-libs/gst/video/gstbasevideoparse.h index 5a1469f1f..252685acd 100644 --- a/gst-libs/gst/video/gstbasevideoparse.h +++ b/gst-libs/gst/video/gstbasevideoparse.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> diff --git a/gst-libs/gst/video/gstbasevideoutils.h b/gst-libs/gst/video/gstbasevideoutils.h index 47871dcff..6d8374291 100644 --- a/gst-libs/gst/video/gstbasevideoutils.h +++ b/gst-libs/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> |