summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-12 10:44:22 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-12 10:44:22 +0100
commit4de592aa14f1370efbf24961d0da912fb1ce709a (patch)
tree0834515f21c398211a9f53022f3258c6384b6503
parent77299ba6aeb30a80b4ce9fc1fffd5e1c98c0842a (diff)
downloadgstreamer-plugins-bad-4de592aa14f1370efbf24961d0da912fb1ce709a.tar.gz
fix for _do_simplify changes
-rw-r--r--ext/cog/gstcogcolorspace.c2
-rw-r--r--tests/check/pipelines/colorspace.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/cog/gstcogcolorspace.c b/ext/cog/gstcogcolorspace.c
index 4a96e5c1f..f81df6cc2 100644
--- a/ext/cog/gstcogcolorspace.c
+++ b/ext/cog/gstcogcolorspace.c
@@ -276,7 +276,7 @@ gst_cogcolorspace_caps_remove_format_info (GstCaps * caps)
gst_structure_remove_field (structure, "chroma-site");
}
- gst_caps_do_simplify (caps);
+ caps = gst_caps_do_simplify (caps);
rgbcaps = gst_caps_copy (caps);
for (i = 0; i < gst_caps_get_size (rgbcaps); i++) {
diff --git a/tests/check/pipelines/colorspace.c b/tests/check/pipelines/colorspace.c
index 56ec9c114..a29d199bd 100644
--- a/tests/check/pipelines/colorspace.c
+++ b/tests/check/pipelines/colorspace.c
@@ -172,8 +172,7 @@ colorspace_compare (gint width, gint height, gboolean comp)
gst_caps_unref (rcaps);
/* normalize to finally have a list of acceptable fixed formats */
- gst_caps_do_simplify (caps);
- tcaps = caps;
+ tcaps = gst_caps_do_simplify (caps);
caps = gst_caps_normalize (tcaps);
gst_caps_unref (tcaps);