va: decode: fix display type
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 6 Dec 2020 17:03:47 +0000 (18:03 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 6 Dec 2020 17:03:47 +0000 (18:03 +0100)
Instead of a pointer to GstVaDisplay it was used a VADisplay type, which in
certain platforms is the same, and the compiler didn't complain.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1860>

sys/va/gstvadecoder.h

index ec0a912..d44771c 100644 (file)
@@ -27,7 +27,7 @@ G_BEGIN_DECLS
 typedef struct _GstVaDecodePicture GstVaDecodePicture;
 struct _GstVaDecodePicture
 {
-  VADisplay display;
+  GstVaDisplay *display;
   GArray *buffers;
   GArray *slices;
   GstBuffer *gstbuffer;