Improve debugging messages.

This commit is contained in:
gb 2010-03-23 10:49:33 +00:00
parent b3c3554938
commit 95edba8907
3 changed files with 9 additions and 1 deletions

View file

@ -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(

View file

@ -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,

View file

@ -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;
}