libs:base: Properly declare APIs as UNSTABLE

This commit is contained in:
Thibault Saunier 2014-06-21 16:51:01 +02:00
parent 902a9a56d0
commit 816b12d100
2 changed files with 8 additions and 1 deletions

View file

@ -3,7 +3,9 @@ lib_LTLIBRARIES = libgstbadbase-@GST_API_VERSION@.la
libgstbadbase_@GST_API_VERSION@_la_SOURCES = \
gstaggregator.c
libgstbadbase_@GST_API_VERSION@_la_CFLAGS = $(GST_CFLAGS)
libgstbadbase_@GST_API_VERSION@_la_CFLAGS = $(GST_CFLAGS) \
-DGST_USE_UNSTABLE_API
libgstbadbase_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS)
libgstbadbase_@GST_API_VERSION@_la_LDFLAGS = $(GST_LDFLAGS)

View file

@ -23,6 +23,11 @@
#ifndef __GST_AGGREGATOR_H__
#define __GST_AGGREGATOR_H__
#ifndef GST_USE_UNSTABLE_API
#warning "The Base library from gst-plugins-bad 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>
G_BEGIN_DECLS