diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-02 13:03:29 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-02 13:11:36 +0100 |
commit | 9a21eda38c5d0c3b4e72f15d0c4b0944afac0bd7 (patch) | |
tree | 2d411084f7926ee9914c045d840f58dfc29372a6 | |
parent | ac91f44747bd2ef31ff5e1aa9555ce2695a65c2d (diff) |
videoscale: remove old caps fields
-rw-r--r-- | gst/videoscale/gstvideoscale.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 01015f143..bebe52f47 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -472,27 +472,13 @@ gst_video_scale_transform_supported (GstVideoScale * videoscale, if ((val = gst_structure_get_value (structure, "format"))) { gst_structure_set_value (s, "format", val); - } else { - if ((val = gst_structure_get_value (structure, "endianness"))) - gst_structure_set_value (s, "endianness", val); - if ((val = gst_structure_get_value (structure, "red_mask"))) - gst_structure_set_value (s, "red_mask", val); - if ((val = gst_structure_get_value (structure, "blue_mask"))) - gst_structure_set_value (s, "blue_mask", val); - if ((val = gst_structure_get_value (structure, "green_mask"))) - gst_structure_set_value (s, "green_mask", val); - if ((val = gst_structure_get_value (structure, "alpha_mask"))) - gst_structure_set_value (s, "alpha_mask", val); - if ((val = gst_structure_get_value (structure, "depth"))) - gst_structure_set_value (s, "depth", val); - if ((val = gst_structure_get_value (structure, "bpp"))) - gst_structure_set_value (s, "bpp", val); } c = gst_caps_new_full (s, NULL); gst_video_info_init (&info); if (!gst_video_info_from_caps (&info, c)) { GST_ERROR_OBJECT (videoscale, "couldn't parse %" GST_PTR_FORMAT, c); + supported = FALSE; } else if (!gst_video_scale_format_supported_for_method (info.finfo->format, method)) { supported = FALSE; |