mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
vdpauvideopostprocess: remove par from caps since we don't handle it yet
This commit is contained in:
parent
370520682d
commit
0b979b48fc
2 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,9 @@ gst_vdp_video_to_output_caps (GstCaps * caps)
|
|||
|
||||
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;
|
||||
|
|
|
@ -514,6 +514,9 @@ gst_vdp_vpp_sink_setcaps (GstPad * pad, GstCaps * caps)
|
|||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue