From 3ec92867288dd89ad7fde98fb5157259647bb010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 24 Mar 2016 13:36:24 +0100 Subject: [PATCH] vaapidecode: GST_VAAPIDECODE macro is a cast This patch is the continuation of commit 1e1d3b1d because the function gst_vaapidecode_get_type() got undefined since then. Now, the macro GST_VAAPIDECODE is a simple cast to the GstVaapiDecode structure. The rest of the GObject handling macros were deleted too. --- gst/vaapi/gstvaapidecode.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.h b/gst/vaapi/gstvaapidecode.h index 55d4b36dcc..691e231f5f 100644 --- a/gst/vaapi/gstvaapidecode.h +++ b/gst/vaapi/gstvaapidecode.h @@ -30,29 +30,7 @@ G_BEGIN_DECLS -#define GST_TYPE_VAAPIDECODE \ - (gst_vaapidecode_get_type()) - -#define GST_VAAPIDECODE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), \ - GST_TYPE_VAAPIDECODE, \ - GstVaapiDecode)) - -#define GST_VAAPIDECODE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), \ - GST_TYPE_VAAPIDECODE, \ - GstVaapiDecodeClass)) - -#define GST_IS_VAAPIDECODE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_VAAPIDECODE)) - -#define GST_IS_VAAPIDECODE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_VAAPIDECODE)) - -#define GST_VAAPIDECODE_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS((obj), \ - GST_TYPE_VAAPIDECODE, \ - GstVaapiDecodeClass)) +#define GST_VAAPIDECODE(obj) ((GstVaapiDecode *)(obj)) typedef struct _GstVaapiDecode GstVaapiDecode; typedef struct _GstVaapiDecodeClass GstVaapiDecodeClass;