vdpauvideopostprocess: remove par from caps since we don't handle it yet
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Wed, 19 Aug 2009 20:52:34 +0000 (22:52 +0200)
committerJan Schmidt <thaytan@noraisin.net>
Wed, 16 Sep 2009 09:25:47 +0000 (10:25 +0100)
sys/vdpau/gstvdputils.c
sys/vdpau/gstvdpvideopostprocess.c

index 4b34f0d..ecb6352 100644 (file)
@@ -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;
index 6f055c5..7b965e9 100644 (file)
@@ -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);