Expose video pool display.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Tue, 11 May 2010 12:06:59 +0000 (12:06 +0000)
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Mon, 20 Sep 2010 10:55:45 +0000 (12:55 +0200)
docs/reference/libs/libs-sections.txt
gst-libs/gst/vaapi/gstvaapivideopool.c
gst-libs/gst/vaapi/gstvaapivideopool.h

index 63a2edd..d759354 100644 (file)
@@ -19,6 +19,7 @@ GST_VAAPI_SURFACE_POOL_GET_CLASS
 <TITLE>GstVaapiVideoPool</TITLE>
 GstVaapiVideoPool
 GstVaapiVideoPoolClass
+gst_vaapi_video_pool_get_display
 gst_vaapi_video_pool_get_caps
 gst_vaapi_video_pool_get_object
 gst_vaapi_video_pool_put_object
index 985742e..fca2734 100644 (file)
@@ -146,7 +146,7 @@ gst_vaapi_video_pool_get_property(
 
     switch (prop_id) {
     case PROP_DISPLAY:
-        g_value_set_object(value, pool->priv->display);
+        g_value_set_object(value, gst_vaapi_video_pool_get_display(pool));
         break;
     case PROP_CAPS:
         g_value_set_pointer(value, gst_vaapi_video_pool_get_caps(pool));
@@ -231,6 +231,23 @@ gst_vaapi_video_pool_init(GstVaapiVideoPool *pool)
 }
 
 /**
+ * gst_vaapi_video_pool_get_display:
+ * @pool: a #GstVaapiVideoPool
+ *
+ * Retrieves the #GstVaapiDisplay the @pool is bound to. The @pool
+ * owns the returned object and it shall not be unref'ed.
+ *
+ * Return value: the #GstVaapiDisplay the @pool is bound to
+ */
+GstVaapiDisplay *
+gst_vaapi_video_pool_get_display(GstVaapiVideoPool *pool)
+{
+    g_return_val_if_fail(GST_VAAPI_IS_VIDEO_POOL(pool), NULL);
+
+    return pool->priv->display;
+}
+
+/**
  * gst_vaapi_video_pool_get_caps:
  * @pool: a #GstVaapiVideoPool
  *
index 7552ef7..a7b4424 100644 (file)
@@ -88,6 +88,9 @@ struct _GstVaapiVideoPoolClass {
 GType
 gst_vaapi_video_pool_get_type(void);
 
+GstVaapiDisplay *
+gst_vaapi_video_pool_get_display(GstVaapiVideoPool *pool);
+
 GstCaps *
 gst_vaapi_video_pool_get_caps(GstVaapiVideoPool *pool);