mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
vdpausink: intersect allowed caps with our template caps
This commit is contained in:
parent
6aba832e7f
commit
7401cd90ad
1 changed files with 7 additions and 2 deletions
|
@ -545,10 +545,15 @@ gst_vdp_sink_calculate_par (Display * display)
|
|||
static GstCaps *
|
||||
gst_vdp_sink_get_allowed_caps (GstVdpDevice * device, GValue * par)
|
||||
{
|
||||
GstCaps *caps;
|
||||
GstCaps *templ_caps, *allowed_caps, *caps;
|
||||
gint i;
|
||||
|
||||
caps = gst_vdp_output_buffer_get_allowed_caps (device);
|
||||
allowed_caps = gst_vdp_output_buffer_get_allowed_caps (device);
|
||||
templ_caps = gst_static_pad_template_get_caps (&sink_template);
|
||||
caps = gst_caps_intersect (allowed_caps, templ_caps);
|
||||
|
||||
gst_caps_unref (allowed_caps);
|
||||
gst_caps_unref (templ_caps);
|
||||
|
||||
if (!par)
|
||||
par = gst_vdp_sink_calculate_par (device->display);
|
||||
|
|
Loading…
Reference in a new issue