vaapidownload: fix debug string for image formats.

The image is now expressed as a standard GstVideoFormat, which is not
a FOURCC but rather a regular enum value.

This is a regression introduced in commit 09397fa.
This commit is contained in:
Gwenole Beauchesne 2013-07-11 18:26:37 +02:00
parent 89321cd3c4
commit 4668e59bf6

View file

@ -336,8 +336,8 @@ gst_vaapidownload_update_src_caps(GstVaapiDownload *download, GstBuffer *buffer)
out_caps = gst_video_format_to_caps(format); out_caps = gst_video_format_to_caps(format);
if (!out_caps) { if (!out_caps) {
GST_WARNING("failed to create caps from format %" GST_FOURCC_FORMAT, GST_WARNING("failed to create caps from format %s",
GST_FOURCC_ARGS(format)); gst_video_format_to_string(format));
return FALSE; return FALSE;
} }
@ -397,9 +397,9 @@ gst_vaapidownload_transform(
error_get_image: error_get_image:
{ {
GST_WARNING("failed to download %" GST_FOURCC_FORMAT " image " const GstVideoFormat format = gst_vaapi_image_get_format(image);
"from surface 0x%08x", GST_WARNING("failed to download %s image from surface 0x%08x",
GST_FOURCC_ARGS(gst_vaapi_image_get_format(image)), gst_video_format_to_string(format),
gst_vaapi_surface_get_id(surface)); gst_vaapi_surface_get_id(surface));
gst_vaapi_video_pool_put_object(download->images, image); gst_vaapi_video_pool_put_object(download->images, image);
return GST_FLOW_UNEXPECTED; return GST_FLOW_UNEXPECTED;