mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
vp9parse: Fix critical warning during caps negotiation
`gst_pad_get_allowed_caps()` returns a non-writable caps, so we need to make it writable, otherwise the `gst_caps_remove_structure()` call below might trigger a critical warning. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5975>
This commit is contained in:
parent
4aaca2cc02
commit
9a5ca61f87
1 changed files with 1 additions and 0 deletions
|
@ -290,6 +290,7 @@ gst_vp9_parse_negotiate (GstVp9Parse * self, GstVp9ParseAligment in_align,
|
|||
/* concentrate on leading structure, since decodebin parser
|
||||
* capsfilter always includes parser template caps */
|
||||
if (caps) {
|
||||
caps = gst_caps_make_writable (caps);
|
||||
while (gst_caps_get_size (caps) > 0) {
|
||||
GstStructure *s = gst_caps_get_structure (caps, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue