libs: codecparser: add missing unstable api warning
authorVictor Manuel Jaquez Leal <vjaquez@noite.lan>
Mon, 16 Mar 2020 16:19:04 +0000 (17:19 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 16 Mar 2020 17:07:54 +0000 (18:07 +0100)
mpeg4 and vp8 parsers didn't show that compilation warning as the
others parsers.

gst-libs/gst/codecparsers/gstmpeg4parser.h
gst-libs/gst/codecparsers/gstvp8parser.h

index be17bb4..7916c28 100644 (file)
 #include <gst/gst.h>
 #include <gst/codecparsers/codecparsers-prelude.h>
 
+#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;
index 23a432d..2e56e6f 100644 (file)
 #include <gst/gst.h>
 #include <gst/codecparsers/codecparsers-prelude.h>
 
+#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;