gtkglsink: Avoid assertion when applying "auto" rotation method
authorBastien Nocera <hadess@hadess.net>
Wed, 13 Oct 2021 08:38:07 +0000 (10:38 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 13 Oct 2021 09:16:32 +0000 (09:16 +0000)
commite1271c0d9c7cf86a17dd28697baa38441561f483
tree1bb95b29bdccc0dc439d5c3414f29693a80cf6b8
parentc3455def2e7bd09a7c3806283ceb69d0bef24869
gtkglsink: Avoid assertion when applying "auto" rotation method

Guard against the orientation not coming from an inexistant tag, nor
from the application (rotation set to "auto") which caused an assertion.

When the application requests the auto rotation method, make sure it is
resolved to a rotation that's applicable.

ERROR:gstreamer/subprojects/gst-plugins-good/ext/gtk/gtkgstglwidget.c:745:gtk_gst_gl_widget_set_rotate_method: code should not be reached

Fixes: 103ceb853a5f7dade07a1ac4aa517e9df6ed5ded
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1134>
subprojects/gst-plugins-good/ext/gtk/gtkgstglwidget.c