videoflip: fix critical when tag list is not writable
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>
Fri, 7 Jul 2023 10:33:37 +0000 (12:33 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 7 Jul 2023 13:59:33 +0000 (14:59 +0100)
commit4c77bc21617d3717bcd677d1fd3dce71713edb2b
treeb91ae2124288881820f0a0b449247f3a334cb941
parentf38e8db249a4fa10e1497d682ad72425dfec1796
videoflip: fix critical when tag list is not writable

Fix this pipeline where the tag list is not writable:

gst-launch-1.0 videotestsrc ! taginject tags="image-orientation=rotate-90" ! videoflip video-direction=auto \
  ! autovideosink

GStreamer-CRITICAL **: 12:34:36.310: gst_tag_list_add: assertion 'gst_tag_list_is_writable (list)' failed

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4990>
subprojects/gst-plugins-good/gst/videofilter/gstvideoflip.c