From efcabce98e51a5d26d028bcd2db414247f17168b Mon Sep 17 00:00:00 2001 From: Victor Manuel Jaquez Leal Date: Mon, 16 Mar 2020 17:19:04 +0100 Subject: [PATCH] libs: codecparser: add missing unstable api warning mpeg4 and vp8 parsers didn't show that compilation warning as the others parsers. --- gst-libs/gst/codecparsers/gstmpeg4parser.h | 5 +++++ gst-libs/gst/codecparsers/gstvp8parser.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gst-libs/gst/codecparsers/gstmpeg4parser.h b/gst-libs/gst/codecparsers/gstmpeg4parser.h index be17bb4..7916c28 100644 --- a/gst-libs/gst/codecparsers/gstmpeg4parser.h +++ b/gst-libs/gst/codecparsers/gstmpeg4parser.h @@ -24,6 +24,11 @@ #include #include +#ifndef GST_USE_UNSTABLE_API +#warning "The MPEG4 parsing library is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + G_BEGIN_DECLS typedef struct _GstMpeg4VisualObjectSequence GstMpeg4VisualObjectSequence; diff --git a/gst-libs/gst/codecparsers/gstvp8parser.h b/gst-libs/gst/codecparsers/gstvp8parser.h index 23a432d..2e56e6f 100644 --- a/gst-libs/gst/codecparsers/gstvp8parser.h +++ b/gst-libs/gst/codecparsers/gstvp8parser.h @@ -27,6 +27,11 @@ #include #include +#ifndef GST_USE_UNSTABLE_API +#warning "The VP8 parsing library is unstable API and may change in future." +#warning "You can define GST_USE_UNSTABLE_API to avoid this warning." +#endif + G_BEGIN_DECLS typedef struct _GstVp8FrameHdr GstVp8FrameHdr; -- 2.7.4