From 95edba8907c9fbafd64d189f7aa0fa41fa649ecb Mon Sep 17 00:00:00 2001 From: gb Date: Tue, 23 Mar 2010 10:49:33 +0000 Subject: [PATCH] Improve debugging messages. --- gst-libs/gst/vaapi/gstvaapiimage.c | 2 ++ gst-libs/gst/vaapi/gstvaapisubpicture.c | 5 ++++- gst-libs/gst/vaapi/gstvaapisurface.c | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapiimage.c b/gst-libs/gst/vaapi/gstvaapiimage.c index df2b676d51..c1d7b40ac3 100644 --- a/gst-libs/gst/vaapi/gstvaapiimage.c +++ b/gst-libs/gst/vaapi/gstvaapiimage.c @@ -153,6 +153,8 @@ gst_vaapi_image_destroy(GstVaapiImage *image) _gst_vaapi_image_unmap(image); + GST_DEBUG("image 0x%08x", priv->internal_image.image_id); + if (priv->internal_image.image_id != VA_INVALID_ID) { GST_VAAPI_DISPLAY_LOCK(priv->display); status = vaDestroyImage( diff --git a/gst-libs/gst/vaapi/gstvaapisubpicture.c b/gst-libs/gst/vaapi/gstvaapisubpicture.c index fff21fe802..40c7447de0 100644 --- a/gst-libs/gst/vaapi/gstvaapisubpicture.c +++ b/gst-libs/gst/vaapi/gstvaapisubpicture.c @@ -58,6 +58,8 @@ gst_vaapi_subpicture_destroy(GstVaapiSubpicture *subpicture) GstVaapiDisplay *display; VAStatus status; + GST_DEBUG("subpicture 0x%08x", priv->subpicture_id); + if (priv->subpicture_id != VA_INVALID_ID) { display = gst_vaapi_image_get_display(priv->image); if (display) { @@ -105,6 +107,7 @@ gst_vaapi_subpicture_create(GstVaapiSubpicture *subpicture) if (!vaapi_check_status(status, "vaCreateSubpicture()")) return FALSE; + GST_DEBUG("subpicture 0x%08x", subpicture_id); priv->subpicture_id = subpicture_id; return TRUE; } @@ -224,7 +227,7 @@ gst_vaapi_subpicture_new(GstVaapiImage *image) { g_return_val_if_fail(GST_VAAPI_IS_IMAGE(image), NULL); - GST_DEBUG("image 0x%08x", gst_vaapi_image_get_id(image)); + GST_DEBUG("create from image 0x%08x", gst_vaapi_image_get_id(image)); return g_object_new(GST_VAAPI_TYPE_SUBPICTURE, "image", image, diff --git a/gst-libs/gst/vaapi/gstvaapisurface.c b/gst-libs/gst/vaapi/gstvaapisurface.c index eca7b95f44..eb45cbe5de 100644 --- a/gst-libs/gst/vaapi/gstvaapisurface.c +++ b/gst-libs/gst/vaapi/gstvaapisurface.c @@ -70,6 +70,8 @@ gst_vaapi_surface_destroy(GstVaapiSurface *surface) GstVaapiSurfacePrivate * const priv = surface->priv; VAStatus status; + GST_DEBUG("surface 0x%08x", priv->surface_id); + if (priv->surface_id != VA_INVALID_SURFACE) { GST_VAAPI_DISPLAY_LOCK(priv->display); status = vaDestroySurfaces( @@ -129,6 +131,7 @@ gst_vaapi_surface_create(GstVaapiSurface *surface) if (!vaapi_check_status(status, "vaCreateSurfaces()")) return FALSE; + GST_DEBUG("surface 0x%08x", surface_id); priv->surface_id = surface_id; return TRUE; }