va: Move back parent_object to each element.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 26 Oct 2021 07:23:42 +0000 (09:23 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 29 Oct 2021 16:06:52 +0000 (16:06 +0000)
commita2a3c81c852d36c84f6ed46f7607fd0d06d99e99
treeff51b669162a3a48ace8d43d9259247c59aeb35c
parent428b4104b0f3ee9bc955b36e86a255a6b2a54b27
va: Move back parent_object to each element.

Using GstBaseDec hack to access the parent_object of each element in
the element itself is a bit fragile. It would be better to keep its
own parent object as the usual global variable. It would make it
resistant to code changes.

The GstBaseDec macro to access the parent object now it's internal to
base decoder.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1257>
subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c
subprojects/gst-plugins-bad/sys/va/gstvabasedec.c
subprojects/gst-plugins-bad/sys/va/gstvabasedec.h
subprojects/gst-plugins-bad/sys/va/gstvah264dec.c
subprojects/gst-plugins-bad/sys/va/gstvah265dec.c
subprojects/gst-plugins-bad/sys/va/gstvampeg2dec.c
subprojects/gst-plugins-bad/sys/va/gstvavp8dec.c
subprojects/gst-plugins-bad/sys/va/gstvavp9dec.c