diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-06-22 03:55:27 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-06-23 22:22:02 +0100 |
commit | eb528cbcc4dab321910defb319feb4387b30b548 (patch) | |
tree | d28c07139011e09868628565b849cbacd5dfe41f /sys/vdpau/gstvdpvideoyuv.c | |
parent | da11b1672fcd03717ca445b8ff300dc2527c0b87 (diff) | |
download | gst-plugins-bad-eb528cbcc4dab321910defb319feb4387b30b548.tar.gz gst-plugins-bad-eb528cbcc4dab321910defb319feb4387b30b548.tar.bz2 gst-plugins-bad-eb528cbcc4dab321910defb319feb4387b30b548.zip |
VDPAU: Move I420/YV12 to the front of the caps. Add debug.
Make I420/YV12 caps be preferred when downloading to YUV buffers,
when possible, by listing them first in the set of output caps.
Add some debug in the caps selection code.
Diffstat (limited to 'sys/vdpau/gstvdpvideoyuv.c')
-rw-r--r-- | sys/vdpau/gstvdpvideoyuv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/vdpau/gstvdpvideoyuv.c b/sys/vdpau/gstvdpvideoyuv.c index 2318cd40..bd780075 100644 --- a/sys/vdpau/gstvdpvideoyuv.c +++ b/sys/vdpau/gstvdpvideoyuv.c @@ -332,6 +332,9 @@ gst_vdp_video_yuv_sink_set_caps (GstPad * pad, GstCaps * caps) if (G_UNLIKELY (!src_caps || !gst_caps_get_size (src_caps))) return FALSE; + GST_DEBUG_OBJECT (video_yuv, + "Selecting first caps from set: %" GST_PTR_FORMAT, src_caps); + new_caps = gst_caps_copy_nth (src_caps, 0); gst_caps_unref (src_caps); if (G_UNLIKELY (!new_caps)) |