video: Add deprecation macros

This commit is contained in:
Sebastian Dröge 2018-12-14 13:43:22 +02:00 committed by Mathieu Duponchelle
parent 362f771fe8
commit fbcbbd363b

View file

@ -30,4 +30,12 @@
#define GST_VIDEO_API GST_API_IMPORT
#endif
#ifndef GST_DISABLE_DEPRECATED
#define GST_VIDEO_DEPRECATED GST_VIDEO_API
#define GST_VIDEO_DEPRECATED_FOR(f) GST_VIDEO_API
#else
#define GST_VIDEO_DEPRECATED G_DEPRECATED GST_VIDEO_API
#define GST_VIDEO_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) GST_VIDEO_API
#endif
#endif /* __GST_VIDEO_PRELUDE_H__ */