surface: don't expose gst_vaapi_surface_get_parent_context().
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 18 Jan 2012 09:42:38 +0000 (10:42 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 18 Jan 2012 09:42:38 +0000 (10:42 +0100)
gst_vaapi_surface_get_parent_context() was not meant to be exposed globally.
It's just an internal helper function. However, it's still possible to get
the parent context through the "parent-context" property.

docs/reference/libs/libs-sections.txt
gst-libs/gst/vaapi/gstvaapisurface.h
gst-libs/gst/vaapi/gstvaapisurface_priv.h

index 46da57a..b4fd513 100644 (file)
@@ -334,7 +334,6 @@ gst_vaapi_surface_get_chroma_type
 gst_vaapi_surface_get_width
 gst_vaapi_surface_get_height
 gst_vaapi_surface_get_size
-gst_vaapi_surface_get_parent_context
 gst_vaapi_surface_derive_image
 gst_vaapi_surface_get_image
 gst_vaapi_surface_put_image
index 0bd8139..9057290 100644 (file)
@@ -35,7 +35,6 @@ G_BEGIN_DECLS
 typedef enum _GstVaapiChromaType                GstVaapiChromaType;
 typedef enum _GstVaapiSurfaceStatus             GstVaapiSurfaceStatus;
 typedef enum _GstVaapiSurfaceRenderFlags        GstVaapiSurfaceRenderFlags;
-typedef struct _GstVaapiContext                 GstVaapiContext;
 
 /**
  * GST_VAAPI_SURFACE_CAPS_NAME:
@@ -198,9 +197,6 @@ gst_vaapi_surface_get_size(
     guint           *pheight
 );
 
-GstVaapiContext *
-gst_vaapi_surface_get_parent_context(GstVaapiSurface *surface);
-
 GstVaapiImage *
 gst_vaapi_surface_derive_image(GstVaapiSurface *surface);
 
index 7c99c69..a7eeda9 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef GST_VAAPI_SURFACE_PRIV_H
 #define GST_VAAPI_SURFACE_PRIV_H
 
+#include <gst/vaapi/gstvaapicontext.h>
 #include <gst/vaapi/gstvaapisurface.h>
 
 void
@@ -30,4 +31,8 @@ gst_vaapi_surface_set_parent_context(
     GstVaapiContext *context
 ) attribute_hidden;
 
+GstVaapiContext *
+gst_vaapi_surface_get_parent_context(GstVaapiSurface *surface)
+    attribute_hidden;
+
 #endif /* GST_VAAPI_SURFACE_PRIV_H */