From 6f80d41c045f8f80b9636a89c258c95f59d55fe6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 15 Mar 2010 18:58:51 +0100 Subject: [PATCH] alpha: Use GstVideoFilter as base class for automatic QoS support --- gst/alpha/Makefile.am | 9 ++++----- gst/alpha/gstalpha.c | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/gst/alpha/Makefile.am b/gst/alpha/Makefile.am index 3d5625084..a47a5ae8e 100644 --- a/gst/alpha/Makefile.am +++ b/gst/alpha/Makefile.am @@ -2,18 +2,17 @@ plugin_LTLIBRARIES = libgstalpha.la libgstalphacolor.la libgstalpha_la_SOURCES = gstalpha.c libgstalpha_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \ - $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GST_CONTROLLER_CFLAGS) + $(GST_CONTROLLER_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) libgstalpha_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \ - $(GST_LIBS) $(GST_BASE_LIBS) $(LIBM) $(GST_CONTROLLER_LIBS) + $(GST_CONTROLLER_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) libgstalpha_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstalpha_la_LIBTOOLFLAGS = --tag=disable-static libgstalphacolor_la_SOURCES = gstalphacolor.c libgstalphacolor_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \ $(GST_BASE_CFLAGS) $(GST_CFLAGS) -libgstalphacolor_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ - $(GST_BASE_LIBS) $(GST_LIBS) \ - -lgstvideo-@GST_MAJORMINOR@ +libgstalphacolor_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \ + $(GST_BASE_LIBS) $(GST_LIBS) libgstalphacolor_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstalphacolor_la_LIBTOOLFLAGS = --tag=disable-static diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c index 6aa1f8af5..30f97da6e 100644 --- a/gst/alpha/gstalpha.c +++ b/gst/alpha/gstalpha.c @@ -24,8 +24,8 @@ #include "config.h" #endif #include -#include #include +#include #include #include @@ -64,7 +64,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_alpha_debug); struct _GstAlpha { - GstBaseTransform parent; + GstVideoFilter parent; /* caps */ GstVideoFormat format; @@ -97,7 +97,7 @@ struct _GstAlpha struct _GstAlphaClass { - GstBaseTransformClass parent_class; + GstVideoFilterClass parent_class; }; /* elementfactory information */ @@ -173,8 +173,7 @@ static void gst_alpha_set_property (GObject * object, guint prop_id, static void gst_alpha_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -GST_BOILERPLATE (GstAlpha, gst_alpha, GstBaseTransform, - GST_TYPE_BASE_TRANSFORM); +GST_BOILERPLATE (GstAlpha, gst_alpha, GstVideoFilter, GST_TYPE_VIDEO_FILTER); #define GST_TYPE_ALPHA_METHOD (gst_alpha_method_get_type()) static GType -- 2.34.1