Reduce number of debug messaged printed out.

This commit is contained in:
gb 2010-03-18 15:58:28 +00:00
parent 72cdf85977
commit d38a9232f8

View file

@ -417,22 +417,27 @@ gst_vaapiconvert_negotiate_buffers(
GstCaps *outcaps GstCaps *outcaps
) )
{ {
gboolean enable;
if (!gst_vaapiconvert_ensure_image_pool(convert, incaps)) if (!gst_vaapiconvert_ensure_image_pool(convert, incaps))
return FALSE; return FALSE;
if (!gst_vaapiconvert_ensure_surface_pool(convert, outcaps)) if (!gst_vaapiconvert_ensure_surface_pool(convert, outcaps))
return FALSE; return FALSE;
convert->use_inout_buffers = convert->can_use_inout_buffers; enable = convert->can_use_inout_buffers;
GST_DEBUG("use-inout-buffers: %spossible, %s", if (convert->use_inout_buffers != enable) {
convert->can_use_inout_buffers ? "" : "not ", convert->use_inout_buffers = enable;
GST_DEBUG("use-inout-buffers: %s",
convert->use_inout_buffers ? "enabled" : "disabled"); convert->use_inout_buffers ? "enabled" : "disabled");
}
convert->use_derive_image = enable = convert->use_inout_buffers && convert->can_use_derive_image;
convert->use_inout_buffers && convert->can_use_derive_image; if (convert->use_derive_image != enable) {
GST_DEBUG("use-derive-image: %spossible, %s", convert->use_derive_image = enable;
convert->can_use_derive_image ? "" : "not ", GST_DEBUG("use-derive-image: %s",
convert->use_derive_image ? "enabled" : "disabled"); convert->use_derive_image ? "enabled" : "disabled");
}
return TRUE; return TRUE;
} }