mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
deinterlace: Fix unit test that checks caps handling
deinterlace now always adds the interlaced field to the output caps, if it wasn't present in the input caps the output caps will still contain interlaced=false.
This commit is contained in:
parent
3dc7215492
commit
88451daa03
1 changed files with 13 additions and 0 deletions
|
@ -256,6 +256,19 @@ deinterlace_set_caps_and_check (GstCaps * input, gboolean must_deinterlace)
|
|||
if (must_deinterlace) {
|
||||
fail_if (gst_caps_is_interlaced (othercaps));
|
||||
} else {
|
||||
GstStructure *s;
|
||||
|
||||
fail_unless (gst_caps_is_interlaced (input) ==
|
||||
gst_caps_is_interlaced (othercaps));
|
||||
|
||||
othercaps = gst_caps_make_writable (othercaps);
|
||||
s = gst_caps_get_structure (othercaps, 0);
|
||||
gst_structure_remove_field (s, "interlaced");
|
||||
|
||||
input = gst_caps_make_writable (input);
|
||||
s = gst_caps_get_structure (input, 0);
|
||||
gst_structure_remove_field (s, "interlaced");
|
||||
|
||||
fail_unless (gst_caps_is_equal (input, othercaps));
|
||||
}
|
||||
gst_caps_unref (input);
|
||||
|
|
Loading…
Reference in a new issue