summaryrefslogtreecommitdiff
path: root/sys/va/gstvah264dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/va/gstvah264dec.c')
-rw-r--r--sys/va/gstvah264dec.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/va/gstvah264dec.c b/sys/va/gstvah264dec.c
index cbe8f7a10..571eddf7a 100644
--- a/sys/va/gstvah264dec.c
+++ b/sys/va/gstvah264dec.c
@@ -89,9 +89,6 @@ struct _GstVaH264Dec
gboolean interlaced;
};
-#define parent_class gst_va_base_dec_parent_class
-extern gpointer gst_va_base_dec_parent_class;
-
/* *INDENT-OFF* */
static const gchar *src_caps_str = GST_VIDEO_CAPS_MAKE_WITH_FEATURES ("memory:VAMemory",
"{ NV12, P010_10LE }") " ;" GST_VIDEO_CAPS_MAKE ("{ NV12, P010_10LE }");
@@ -825,7 +822,8 @@ gst_va_h264_dec_negotiate (GstVideoDecoder * decoder)
GST_INFO_OBJECT (self, "Negotiated caps %" GST_PTR_FORMAT,
base->output_state->caps);
- return GST_VIDEO_DECODER_CLASS (parent_class)->negotiate (decoder);
+ return GST_VIDEO_DECODER_CLASS (GST_VA_BASE_DEC_GET_PARENT_CLASS
+ (decoder))->negotiate (decoder);
}
static void
@@ -836,7 +834,7 @@ gst_va_h264_dec_dispose (GObject * object)
gst_va_base_dec_close (GST_VIDEO_DECODER (object));
g_clear_pointer (&self->ref_list, g_array_unref);
- G_OBJECT_CLASS (parent_class)->dispose (object);
+ G_OBJECT_CLASS (GST_VA_BASE_DEC_GET_PARENT_CLASS (object))->dispose (object);
}
static void