libs:video: Properly declare APIs as UNSTABLE
authorThibault Saunier <tsaunier@gnome.org>
Sat, 21 Jun 2014 14:52:51 +0000 (16:52 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Sat, 21 Jun 2014 15:02:50 +0000 (17:02 +0200)
gst-libs/gst/video/Makefile.am
gst-libs/gst/video/gstvideoaggregator.h

index 9f54995..567a1f8 100644 (file)
@@ -19,6 +19,7 @@ libgstbadvideo_@GST_API_VERSION@include_HEADERS = \
 nodist_libgstbadvideo_@GST_API_VERSION@include_HEADERS = $(built_headers)
 
 libgstbadvideo_@GST_API_VERSION@_la_CFLAGS = \
+       -DGST_USE_UNSTABLE_API \
        -I$(top_srcdir)/gst-libs \
        -I$(top_builddir)/gst-libs \
        $(GST_CFLAGS) $(ORC_CFLAGS) \
index 9fa5071..b9fd531 100644 (file)
 #ifndef __GST_VIDEO_AGGREGATOR_H__
 #define __GST_VIDEO_AGGREGATOR_H__
 
+#ifndef GST_USE_UNSTABLE_API
+#warning "The Video 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>
 #include <gst/video/video.h>
 #include <gst/base/gstaggregator.h>