Commit d4682fa1 authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by GStreamer Merge Bot

va: filter: check if filter is open on set_orientation()

Because the method requires pipeline_caps is filled.

Part-of: <!2023>
parent 812973fb
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment