mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
goom: Ensure src caps are writable
In some cases the src caps determined by goom weren't writable, causing a bunch of assertion failures and failed caps. Fixed by always explicitely making the caps writable https://bugzilla.gnome.org/show_bug.cgi?id=705475
This commit is contained in:
parent
3c82de59f9
commit
d14d4c436c
1 changed files with 1 additions and 0 deletions
|
@ -279,6 +279,7 @@ gst_goom_src_negotiate (GstGoom * goom)
|
||||||
target = templ;
|
target = templ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
target = gst_caps_make_writable (target);
|
||||||
structure = gst_caps_get_structure (target, 0);
|
structure = gst_caps_get_structure (target, 0);
|
||||||
gst_structure_fixate_field_nearest_int (structure, "width", DEFAULT_WIDTH);
|
gst_structure_fixate_field_nearest_int (structure, "width", DEFAULT_WIDTH);
|
||||||
gst_structure_fixate_field_nearest_int (structure, "height", DEFAULT_HEIGHT);
|
gst_structure_fixate_field_nearest_int (structure, "height", DEFAULT_HEIGHT);
|
||||||
|
|
Loading…
Reference in a new issue