videobuffer: mark video buffer creation routines as deprecated.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 24 Jul 2012 12:09:09 +0000 (14:09 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 24 Jul 2012 13:57:57 +0000 (15:57 +0200)
The vdeo buffer creation routines shall actually be internal to gstreamer-vaapi
plugin elements. So deprecate any explicit creation routines that are not the
new *_typed_new*() variants.

gst-libs/gst/vaapi/gstvaapivideobuffer.h
gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h

index 04c5ba4..118ea35 100644 (file)
@@ -85,24 +85,35 @@ struct _GstVaapiVideoBufferClass {
 GType
 gst_vaapi_video_buffer_get_type(void) G_GNUC_CONST;
 
+/* Deprecated API. Client applications shall not use the following functions */
+#ifndef GST_VAAPI_DISABLE_DEPRECATED
+
+G_GNUC_DEPRECATED
 GstBuffer *
 gst_vaapi_video_buffer_new(GstVaapiDisplay *display);
 
+G_GNUC_DEPRECATED
 GstBuffer *
 gst_vaapi_video_buffer_new_from_pool(GstVaapiVideoPool *pool);
 
+G_GNUC_DEPRECATED
 GstBuffer *
 gst_vaapi_video_buffer_new_from_buffer(GstBuffer *buffer);
 
+G_GNUC_DEPRECATED
 GstBuffer *
 gst_vaapi_video_buffer_new_with_image(GstVaapiImage *image);
 
+G_GNUC_DEPRECATED
 GstBuffer *
 gst_vaapi_video_buffer_new_with_surface(GstVaapiSurface *surface);
 
+G_GNUC_DEPRECATED
 GstBuffer *
 gst_vaapi_video_buffer_new_with_surface_proxy(GstVaapiSurfaceProxy *proxy);
 
+#endif /* GST_VAAPI_DISABLE_DEPRECATED */
+
 GstVaapiDisplay *
 gst_vaapi_video_buffer_get_display(GstVaapiVideoBuffer *buffer);
 
index af0a05c..fe5e0c3 100644 (file)
@@ -79,10 +79,21 @@ struct _GstVaapiVideoBufferGLXClass {
 };
 
 GType      gst_vaapi_video_buffer_glx_get_type        (void) G_GNUC_CONST;
+
+/* Deprecated API. Client applications shall not use the following functions */
+#ifndef GST_VAAPI_DISABLE_DEPRECATED
+
+G_GNUC_DEPRECATED
 GstBuffer *gst_vaapi_video_buffer_glx_new             (GstVaapiDisplayGLX * display);
+
+G_GNUC_DEPRECATED
 GstBuffer *gst_vaapi_video_buffer_glx_new_from_pool   (GstVaapiVideoPool * pool);
+
+G_GNUC_DEPRECATED
 GstBuffer *gst_vaapi_video_buffer_glx_new_from_buffer (GstBuffer * buffer);
 
+#endif /* GST_VAAPI_DISABLE_DEPRECATED */
+
 G_END_DECLS
 
 #endif /* GST_VAAPI_VIDEO_BUFFER_GLX_H */