From 2c928aba19f7dd6caad556ada8060704e3184550 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 16 Sep 2011 19:03:31 -0300 Subject: [PATCH] codecparsers: Declare the new APIs as unstable for the time being --- gst-libs/gst/codecparsers/gsth264parser.h | 5 +++++ gst-libs/gst/codecparsers/gstmpegvideoparser.h | 5 +++++ gst/videoparsers/Makefile.am | 1 + tests/check/Makefile.am | 2 ++ 4 files changed, 13 insertions(+) diff --git a/gst-libs/gst/codecparsers/gsth264parser.h b/gst-libs/gst/codecparsers/gsth264parser.h index ea808a6770..2dfe2d7b63 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.h +++ b/gst-libs/gst/codecparsers/gsth264parser.h @@ -30,6 +30,11 @@ #ifndef __GST_H264_PARSER_H__ #define __GST_H264_PARSER_H__ +#ifndef GST_USE_UNSTABLE_API +#warning "The H.264 parsing library is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include G_BEGIN_DECLS diff --git a/gst-libs/gst/codecparsers/gstmpegvideoparser.h b/gst-libs/gst/codecparsers/gstmpegvideoparser.h index 8bdf684770..a212a94445 100644 --- a/gst-libs/gst/codecparsers/gstmpegvideoparser.h +++ b/gst-libs/gst/codecparsers/gstmpegvideoparser.h @@ -26,6 +26,11 @@ #ifndef __GST_MPEG_VIDEO_UTILS_H__ #define __GST_MPEG_VIDEO_UTILS_H__ +#ifndef GST_USE_UNSTABLE_API +#warning "The Mpeg video parsing library is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + #include G_BEGIN_DECLS diff --git a/gst/videoparsers/Makefile.am b/gst/videoparsers/Makefile.am index 811d5f860a..ac2a517119 100644 --- a/gst/videoparsers/Makefile.am +++ b/gst/videoparsers/Makefile.am @@ -7,6 +7,7 @@ libgstvideoparsersbad_la_SOURCES = plugin.c \ libgstvideoparsersbad_la_CFLAGS = \ $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \ + -DGST_USE_UNSTABLE_API \ $(GST_BASE_CFLAGS) $(GST_CFLAGS) libgstvideoparsersbad_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ $(top_builddir)/gst-libs/gst/codecparsers/libgstcodecparsers-$(GST_MAJORMINOR).la \ diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index 47bd813c98..d09991db1e 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -218,6 +218,7 @@ elements_h264parse_LDADD = libparser.la $(LDADD) libs_mpegvideoparser_CFLAGS = \ $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \ + -DGST_USE_UNSTABLE_API \ $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS) libs_mpegvideoparser_LDADD = \ @@ -227,6 +228,7 @@ libs_mpegvideoparser_LDADD = \ libs_h264parser_CFLAGS = \ $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \ + -DGST_USE_UNSTABLE_API \ $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS) libs_h264parser_LDADD = \