mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
va: filter: check if filter is open on set_orientation()
Because the method requires pipeline_caps is filled. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2023>
This commit is contained in:
parent
812973fb6b
commit
d4682fa136
1 changed files with 3 additions and 0 deletions
|
@ -780,6 +780,9 @@ gst_va_filter_set_orientation (GstVaFilter * self,
|
|||
guint32 mirror = VA_MIRROR_NONE, rotation = VA_ROTATION_NONE;
|
||||
guint32 mirror_flags, rotation_flags;
|
||||
|
||||
if (!gst_va_filter_is_open (self))
|
||||
return FALSE;
|
||||
|
||||
if (!_from_video_orientation_method (orientation, &mirror, &rotation))
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue