<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
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));
}
/**
+ * 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
*