From: gb Date: Tue, 11 May 2010 12:06:59 +0000 (+0000) Subject: Expose video pool display. X-Git-Tag: accepted/trunk/20120822.173359~431 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f5e593abdf8638035865b444814128cd9161e07;p=profile%2Fivi%2Fgstreamer-vaapi.git Expose video pool display. --- diff --git a/docs/reference/libs/libs-sections.txt b/docs/reference/libs/libs-sections.txt index 63a2edd..d759354 100644 --- a/docs/reference/libs/libs-sections.txt +++ b/docs/reference/libs/libs-sections.txt @@ -19,6 +19,7 @@ GST_VAAPI_SURFACE_POOL_GET_CLASS GstVaapiVideoPool 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 diff --git a/gst-libs/gst/vaapi/gstvaapivideopool.c b/gst-libs/gst/vaapi/gstvaapivideopool.c index 985742e..fca2734 100644 --- a/gst-libs/gst/vaapi/gstvaapivideopool.c +++ b/gst-libs/gst/vaapi/gstvaapivideopool.c @@ -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 * diff --git a/gst-libs/gst/vaapi/gstvaapivideopool.h b/gst-libs/gst/vaapi/gstvaapivideopool.h index 7552ef7..a7b4424 100644 --- a/gst-libs/gst/vaapi/gstvaapivideopool.h +++ b/gst-libs/gst/vaapi/gstvaapivideopool.h @@ -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);