gst_structure_set_name (structure, "video/x-vdpau-output");
gst_structure_remove_field (structure, "chroma-type");
+
+ /* FIXME: don't know what to do with pixel-aspect-ratio */
+ gst_structure_remove_field (structure, "pixel-aspect-ratio");
}
return result;
src_caps = gst_caps_intersect (output_caps, allowed_caps);
gst_caps_truncate (src_caps);
+ if (gst_caps_is_empty (src_caps))
+ goto invalid_caps;
+
GST_DEBUG ("output_caps: %" GST_PTR_FORMAT " allowed_caps: %" GST_PTR_FORMAT
" src_caps: %" GST_PTR_FORMAT, output_caps, allowed_caps, src_caps);