From: Stefan Sauer Date: Fri, 4 Nov 2011 17:41:36 +0000 (+0100) Subject: controller: port to new controller location and api X-Git-Tag: 1.19.3~509^2~7562 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb162c8eb45416b39be650d280167835817e780b;p=platform%2Fupstream%2Fgstreamer.git controller: port to new controller location and api --- diff --git a/ext/annodex/gstcmmldec.h b/ext/annodex/gstcmmldec.h index 27a6c55..b7b302d 100644 --- a/ext/annodex/gstcmmldec.h +++ b/ext/annodex/gstcmmldec.h @@ -26,7 +26,6 @@ #include #include -#include #include "gstcmmlparser.h" diff --git a/gst/alpha/Makefile.am b/gst/alpha/Makefile.am index dcd88ae..b17fb41 100644 --- a/gst/alpha/Makefile.am +++ b/gst/alpha/Makefile.am @@ -2,9 +2,9 @@ plugin_LTLIBRARIES = libgstalpha.la libgstalphacolor.la libgstalpha_la_SOURCES = gstalpha.c libgstalpha_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \ - $(GST_CONTROLLER_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) + $(GST_BASE_CFLAGS) $(GST_CFLAGS) libgstalpha_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \ - $(GST_CONTROLLER_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) + $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) libgstalpha_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstalpha_la_LIBTOOLFLAGS = --tag=disable-static diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c index 3b6ce3a..0edaf6d 100644 --- a/gst/alpha/gstalpha.c +++ b/gst/alpha/gstalpha.c @@ -2570,7 +2570,7 @@ gst_alpha_before_transform (GstBaseTransform * btrans, GstBuffer * buf) GST_BUFFER_TIMESTAMP (buf)); GST_LOG ("Got stream time of %" GST_TIME_FORMAT, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (timestamp)) - gst_object_sync_values (G_OBJECT (alpha), timestamp); + gst_object_sync_values (GST_OBJECT (alpha), timestamp); } static GstFlowReturn @@ -2624,8 +2624,6 @@ invalid_out: static gboolean plugin_init (GstPlugin * plugin) { - gst_controller_init (NULL, NULL); - return gst_element_register (plugin, "alpha", GST_RANK_NONE, GST_TYPE_ALPHA); } diff --git a/gst/alpha/gstalpha.h b/gst/alpha/gstalpha.h index 6cae928..3e15c14 100644 --- a/gst/alpha/gstalpha.h +++ b/gst/alpha/gstalpha.h @@ -26,7 +26,6 @@ #include #include #include -#include G_BEGIN_DECLS diff --git a/gst/audiofx/Makefile.am b/gst/audiofx/Makefile.am index c943e20..b7f22d6 100644 --- a/gst/audiofx/Makefile.am +++ b/gst/audiofx/Makefile.am @@ -22,11 +22,9 @@ libgstaudiofx_la_SOURCES = audiofx.c\ # flags used to compile this plugin libgstaudiofx_la_CFLAGS = $(GST_CFLAGS) \ $(GST_BASE_CFLAGS) \ - $(GST_CONTROLLER_CFLAGS) \ $(GST_PLUGINS_BASE_CFLAGS) libgstaudiofx_la_LIBADD = $(GST_LIBS) \ $(GST_BASE_LIBS) \ - $(GST_CONTROLLER_LIBS) \ $(GST_PLUGINS_BASE_LIBS) \ -lgstaudio-$(GST_MAJORMINOR) \ -lgstfft-$(GST_MAJORMINOR) \ diff --git a/gst/audiofx/audioamplify.c b/gst/audiofx/audioamplify.c index 0a8627d..f8dbb21 100644 --- a/gst/audiofx/audioamplify.c +++ b/gst/audiofx/audioamplify.c @@ -43,7 +43,6 @@ #include #include #include -#include #include "audioamplify.h" @@ -459,7 +458,7 @@ gst_audio_amplify_transform_ip (GstBaseTransform * base, GstBuffer * buf) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (gst_base_transform_is_passthrough (base) || G_UNLIKELY (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_GAP))) diff --git a/gst/audiofx/audiochebband.c b/gst/audiofx/audiochebband.c index 10220d3..caa40ce 100644 --- a/gst/audiofx/audiochebband.c +++ b/gst/audiofx/audiochebband.c @@ -74,7 +74,6 @@ #include #include #include -#include #include diff --git a/gst/audiofx/audiocheblimit.c b/gst/audiofx/audiocheblimit.c index ef5fc1f..8905cbf 100644 --- a/gst/audiofx/audiocheblimit.c +++ b/gst/audiofx/audiocheblimit.c @@ -70,7 +70,6 @@ #include #include #include -#include #include diff --git a/gst/audiofx/audiodynamic.c b/gst/audiofx/audiodynamic.c index 2fdf7b3..564dd7f 100644 --- a/gst/audiofx/audiodynamic.c +++ b/gst/audiofx/audiodynamic.c @@ -46,7 +46,6 @@ #include #include #include -#include #include "audiodynamic.h" @@ -702,7 +701,7 @@ gst_audio_dynamic_transform_ip (GstBaseTransform * base, GstBuffer * buf) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (gst_base_transform_is_passthrough (base) || G_UNLIKELY (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_GAP))) diff --git a/gst/audiofx/audioecho.c b/gst/audiofx/audioecho.c index a93e40a..38cafd2 100644 --- a/gst/audiofx/audioecho.c +++ b/gst/audiofx/audioecho.c @@ -50,7 +50,6 @@ #include #include #include -#include #include "audioecho.h" @@ -370,7 +369,7 @@ gst_audio_echo_transform_ip (GstBaseTransform * base, GstBuffer * buf) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (self), stream_time); + gst_object_sync_values (GST_OBJECT (self), stream_time); if (self->buffer == NULL) { guint bpf, rate; diff --git a/gst/audiofx/audiofirfilter.c b/gst/audiofx/audiofirfilter.c index 7d6d77a..4147689 100644 --- a/gst/audiofx/audiofirfilter.c +++ b/gst/audiofx/audiofirfilter.c @@ -53,7 +53,6 @@ #include #include #include -#include #include "audiofirfilter.h" diff --git a/gst/audiofx/audiofx.c b/gst/audiofx/audiofx.c index a268724..098e442 100644 --- a/gst/audiofx/audiofx.c +++ b/gst/audiofx/audiofx.c @@ -23,7 +23,6 @@ #endif #include -#include #include "audiopanorama.h" #include "audioinvert.h" @@ -46,9 +45,6 @@ static gboolean plugin_init (GstPlugin * plugin) { - /* initialize gst controller library */ - gst_controller_init (NULL, NULL); - return (gst_element_register (plugin, "audiopanorama", GST_RANK_NONE, GST_TYPE_AUDIO_PANORAMA) && gst_element_register (plugin, "audioinvert", GST_RANK_NONE, diff --git a/gst/audiofx/audiofxbasefirfilter.c b/gst/audiofx/audiofxbasefirfilter.c index 6eb9020..014de0e 100644 --- a/gst/audiofx/audiofxbasefirfilter.c +++ b/gst/audiofx/audiofxbasefirfilter.c @@ -30,7 +30,6 @@ #include #include #include -#include #include "audiofxbasefirfilter.h" @@ -829,7 +828,7 @@ gst_audio_fx_base_fir_filter_transform (GstBaseTransform * base, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (self), stream_time); + gst_object_sync_values (GST_OBJECT (self), stream_time); g_return_val_if_fail (self->kernel != NULL, GST_FLOW_ERROR); g_return_val_if_fail (channels != 0, GST_FLOW_ERROR); diff --git a/gst/audiofx/audiofxbaseiirfilter.c b/gst/audiofx/audiofxbaseiirfilter.c index 7afb7d0..0b8c088 100644 --- a/gst/audiofx/audiofxbaseiirfilter.c +++ b/gst/audiofx/audiofxbaseiirfilter.c @@ -26,7 +26,6 @@ #include #include #include -#include #include @@ -364,7 +363,7 @@ gst_audio_fx_base_iir_filter_transform_ip (GstBaseTransform * base, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (gst_base_transform_is_passthrough (base)) return GST_FLOW_OK; diff --git a/gst/audiofx/audioiirfilter.c b/gst/audiofx/audioiirfilter.c index 761606a..f411d88 100644 --- a/gst/audiofx/audioiirfilter.c +++ b/gst/audiofx/audioiirfilter.c @@ -49,7 +49,6 @@ #include #include #include -#include #include "audioiirfilter.h" diff --git a/gst/audiofx/audioinvert.c b/gst/audiofx/audioinvert.c index 56a2d0b..dc61b26 100644 --- a/gst/audiofx/audioinvert.c +++ b/gst/audiofx/audioinvert.c @@ -44,7 +44,6 @@ #include #include #include -#include #include "audioinvert.h" @@ -239,7 +238,7 @@ gst_audio_invert_transform_ip (GstBaseTransform * base, GstBuffer * buf) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (gst_base_transform_is_passthrough (base) || G_UNLIKELY (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_GAP))) diff --git a/gst/audiofx/audiokaraoke.c b/gst/audiofx/audiokaraoke.c index d79686d..4d09eed 100644 --- a/gst/audiofx/audiokaraoke.c +++ b/gst/audiofx/audiokaraoke.c @@ -42,7 +42,6 @@ #include #include #include -#include #include "audiokaraoke.h" @@ -341,7 +340,7 @@ gst_audio_karaoke_transform_ip (GstBaseTransform * base, GstBuffer * buf) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (gst_base_transform_is_passthrough (base) || G_UNLIKELY (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_GAP))) diff --git a/gst/audiofx/audiopanorama.c b/gst/audiofx/audiopanorama.c index 5875a52..133bb77 100644 --- a/gst/audiofx/audiopanorama.c +++ b/gst/audiofx/audiopanorama.c @@ -42,7 +42,6 @@ #include #include -#include #include "audiopanorama.h" @@ -630,7 +629,7 @@ gst_audio_panorama_transform (GstBaseTransform * base, GstBuffer * inbuf, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); indata = gst_buffer_map (inbuf, &insize, NULL, GST_MAP_READ); outdata = gst_buffer_map (outbuf, &outsize, NULL, GST_MAP_WRITE); diff --git a/gst/audiofx/audiowsincband.c b/gst/audiofx/audiowsincband.c index 3f5df12..3f23b56 100644 --- a/gst/audiofx/audiowsincband.c +++ b/gst/audiofx/audiowsincband.c @@ -60,7 +60,6 @@ #include #include #include -#include #include "audiowsincband.h" diff --git a/gst/audiofx/audiowsinclimit.c b/gst/audiofx/audiowsinclimit.c index 2779b55..f13d2d0 100644 --- a/gst/audiofx/audiowsinclimit.c +++ b/gst/audiofx/audiowsinclimit.c @@ -60,7 +60,6 @@ #include #include #include -#include #include "audiowsinclimit.h" diff --git a/gst/effectv/Makefile.am b/gst/effectv/Makefile.am index 2fe3152..fb5d3f2 100644 --- a/gst/effectv/Makefile.am +++ b/gst/effectv/Makefile.am @@ -6,13 +6,11 @@ libgsteffectv_la_SOURCES = \ gstradioac.c gststreak.c gstripple.c libgsteffectv_la_CFLAGS = \ $(GST_PLUGINS_BASE_CFLAGS) \ - $(GST_CONTROLLER_CFLAGS) \ $(GST_BASE_CFLAGS) \ $(GST_CFLAGS) \ -I$(top_srcdir)/gst/videofilter libgsteffectv_la_LIBADD = \ $(GST_PLUGINS_BASE_LIBS) -lgstvideo-@GST_MAJORMINOR@ \ - $(GST_CONTROLLER_LIBS) \ $(GST_BASE_LIBS) \ $(GST_LIBS) \ $(LIBM) diff --git a/gst/effectv/gstaging.c b/gst/effectv/gstaging.c index 2d1af98..d3c9da5 100644 --- a/gst/effectv/gstaging.c +++ b/gst/effectv/gstaging.c @@ -48,8 +48,6 @@ #include "gstaging.h" #include "gsteffectv.h" -#include - static const gint dx[8] = { 1, 1, 0, -1, -1, -1, 0, 1 }; static const gint dy[8] = { 0, -1, -1, -1, 0, 1, 1, 1 }; @@ -341,7 +339,7 @@ gst_agingtv_transform (GstBaseTransform * trans, GstBuffer * in, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (agingtv), stream_time); + gst_object_sync_values (GST_OBJECT (agingtv), stream_time); if (!gst_video_frame_map (&in_frame, &agingtv->info, in, GST_MAP_READ)) goto invalid_in; diff --git a/gst/effectv/gstdice.c b/gst/effectv/gstdice.c index 675ee69..ca803b0 100644 --- a/gst/effectv/gstdice.c +++ b/gst/effectv/gstdice.c @@ -53,8 +53,6 @@ #include "gstdice.h" #include "gsteffectv.h" -#include - #define DEFAULT_CUBE_BITS 4 #define MAX_CUBE_BITS 5 #define MIN_CUBE_BITS 0 @@ -140,7 +138,7 @@ gst_dicetv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); gst_video_frame_map (&in_frame, &filter->info, in, GST_MAP_READ); gst_video_frame_map (&out_frame, &filter->info, out, GST_MAP_WRITE); diff --git a/gst/effectv/gstop.c b/gst/effectv/gstop.c index e3a6b2e..7d89ea1 100644 --- a/gst/effectv/gstop.c +++ b/gst/effectv/gstop.c @@ -50,7 +50,6 @@ #include "gsteffectv.h" #include -#include enum { @@ -219,7 +218,7 @@ gst_optv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (G_UNLIKELY (filter->opmap[0] == NULL)) return GST_FLOW_NOT_NEGOTIATED; diff --git a/gst/effectv/gstquark.c b/gst/effectv/gstquark.c index b9bb29e..1c44347 100644 --- a/gst/effectv/gstquark.c +++ b/gst/effectv/gstquark.c @@ -48,8 +48,6 @@ #include "gstquark.h" #include "gsteffectv.h" -#include - /* number of frames of time-buffer. It should be as a configurable paramater */ /* This number also must be 2^n just for the speed. */ #define PLANES 16 @@ -128,7 +126,7 @@ gst_quarktv_transform (GstBaseTransform * trans, GstBuffer * in, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (timestamp)) - gst_object_sync_values (G_OBJECT (filter), timestamp); + gst_object_sync_values (GST_OBJECT (filter), timestamp); if (G_UNLIKELY (filter->planetable == NULL)) return GST_FLOW_WRONG_STATE; diff --git a/gst/effectv/gstradioac.c b/gst/effectv/gstradioac.c index 15be676..66d13e5 100644 --- a/gst/effectv/gstradioac.c +++ b/gst/effectv/gstradioac.c @@ -55,8 +55,6 @@ #include "gstradioac.h" #include "gsteffectv.h" -#include - enum { RADIOAC_NORMAL = 0, @@ -334,7 +332,7 @@ gst_radioactv_transform (GstBaseTransform * trans, GstBuffer * in, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (!gst_video_frame_map (&in_frame, &filter->info, in, GST_MAP_READ)) goto invalid_in; diff --git a/gst/effectv/gstrev.c b/gst/effectv/gstrev.c index c5d1d63..6dce887 100644 --- a/gst/effectv/gstrev.c +++ b/gst/effectv/gstrev.c @@ -64,8 +64,6 @@ #include "gstrev.h" -#include - #define THE_COLOR 0xffffffff enum @@ -141,7 +139,7 @@ gst_revtv_transform (GstBaseTransform * trans, GstBuffer * in, GstBuffer * out) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (!gst_video_frame_map (&in_frame, &filter->info, in, GST_MAP_READ)) goto invalid_in; diff --git a/gst/effectv/gstripple.c b/gst/effectv/gstripple.c index 1c0d9cf..8f1f64a 100644 --- a/gst/effectv/gstripple.c +++ b/gst/effectv/gstripple.c @@ -52,8 +52,6 @@ #include "gstripple.h" #include "gsteffectv.h" -#include - #define DEFAULT_MODE 0 enum @@ -328,7 +326,7 @@ gst_rippletv_transform (GstBaseTransform * trans, GstBuffer * in, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (!gst_video_frame_map (&in_frame, &filter->info, in, GST_MAP_READ)) goto invalid_in; diff --git a/gst/effectv/gstvertigo.c b/gst/effectv/gstvertigo.c index 0e38275..44a367d 100644 --- a/gst/effectv/gstvertigo.c +++ b/gst/effectv/gstvertigo.c @@ -43,8 +43,6 @@ #include "gstvertigo.h" -#include - #define gst_vertigotv_parent_class parent_class G_DEFINE_TYPE (GstVertigoTV, gst_vertigotv, GST_TYPE_VIDEO_FILTER); @@ -182,7 +180,7 @@ gst_vertigotv_transform (GstBaseTransform * trans, GstBuffer * in, GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (filter), stream_time); + gst_object_sync_values (GST_OBJECT (filter), stream_time); if (!gst_video_frame_map (&in_frame, &filter->info, in, GST_MAP_READ)) goto invalid_in; diff --git a/gst/equalizer/Makefile.am b/gst/equalizer/Makefile.am index b3b8663..760698f 100644 --- a/gst/equalizer/Makefile.am +++ b/gst/equalizer/Makefile.am @@ -7,9 +7,9 @@ libgstequalizer_la_SOURCES = \ gstiirequalizer10bands.c gstiirequalizer10bands.h libgstequalizer_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) \ - $(GST_CONTROLLER_CFLAGS) $(GST_CFLAGS) + $(GST_CFLAGS) libgstequalizer_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ - -lgstaudio-$(GST_MAJORMINOR) $(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) \ + -lgstaudio-$(GST_MAJORMINOR) $(GST_BASE_LIBS) \ $(GST_LIBS) $(LIBM) libgstequalizer_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstequalizer_la_LIBTOOLFLAGS = --tag=disable-static diff --git a/gst/equalizer/gstiirequalizer.c b/gst/equalizer/gstiirequalizer.c index 3872a02..b93d1b5 100644 --- a/gst/equalizer/gstiirequalizer.c +++ b/gst/equalizer/gstiirequalizer.c @@ -838,7 +838,7 @@ gst_iir_equalizer_transform_ip (GstBaseTransform * btrans, GstBuffer * buf) gst_segment_to_stream_time (&btrans->segment, GST_FORMAT_TIME, timestamp); if (GST_CLOCK_TIME_IS_VALID (timestamp)) - gst_object_sync_values (G_OBJECT (equ), timestamp); + gst_object_sync_values (GST_OBJECT (equ), timestamp); data = gst_buffer_map (buf, &size, NULL, GST_MAP_WRITE); equ->process (equ, data, size, channels); diff --git a/gst/equalizer/gstiirequalizer.h b/gst/equalizer/gstiirequalizer.h index 2254ddc..80af94c 100644 --- a/gst/equalizer/gstiirequalizer.h +++ b/gst/equalizer/gstiirequalizer.h @@ -23,7 +23,6 @@ #include #include -#include typedef struct _GstIirEqualizer GstIirEqualizer; typedef struct _GstIirEqualizerClass GstIirEqualizerClass; diff --git a/gst/shapewipe/Makefile.am b/gst/shapewipe/Makefile.am index 35cf5df..8634597 100644 --- a/gst/shapewipe/Makefile.am +++ b/gst/shapewipe/Makefile.am @@ -2,8 +2,8 @@ plugin_LTLIBRARIES = libgstshapewipe.la libgstshapewipe_la_SOURCES = gstshapewipe.c -libgstshapewipe_la_CFLAGS = $(GIO_CFLAGS) $(GST_CFLAGS) $(GST_CONTROLLER_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) -libgstshapewipe_la_LIBADD = $(GIO_LIBS) $(GST_LIBS) $(GST_CONTROLLER_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-@GST_MAJORMINOR@ +libgstshapewipe_la_CFLAGS = $(GIO_CFLAGS) $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) +libgstshapewipe_la_LIBADD = $(GIO_LIBS) $(GST_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-@GST_MAJORMINOR@ libgstshapewipe_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstshapewipe_la_LIBTOOLFLAGS = --tag=disable-static diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c index 645840f..3c7b153 100644 --- a/gst/shapewipe/gstshapewipe.c +++ b/gst/shapewipe/gstshapewipe.c @@ -45,7 +45,6 @@ #include #include -#include #include "gstshapewipe.h" @@ -821,7 +820,7 @@ gst_shape_wipe_video_sink_chain (GstPad * pad, GstBuffer * buffer) gst_segment_to_stream_time (&self->segment, GST_FORMAT_TIME, timestamp); if (GST_CLOCK_TIME_IS_VALID (timestamp)) - gst_object_sync_values (G_OBJECT (self), timestamp); + gst_object_sync_values (GST_OBJECT (self), timestamp); GST_LOG_OBJECT (self, "Blending buffer with timestamp %" GST_TIME_FORMAT " at position %f", @@ -1085,8 +1084,6 @@ plugin_init (GstPlugin * plugin) GST_DEBUG_CATEGORY_INIT (gst_shape_wipe_debug, "shapewipe", 0, "shapewipe element"); - gst_controller_init (NULL, NULL); - if (!gst_element_register (plugin, "shapewipe", GST_RANK_NONE, GST_TYPE_SHAPE_WIPE)) return FALSE; diff --git a/gst/smpte/Makefile.am b/gst/smpte/Makefile.am index 34bb039..cb517e6 100644 --- a/gst/smpte/Makefile.am +++ b/gst/smpte/Makefile.am @@ -4,10 +4,9 @@ libgstsmpte_la_SOURCES = gstsmpte.c gstmask.c barboxwipes.c paint.c gstsmptealph noinst_HEADERS = gstsmpte.h gstmask.h paint.h gstsmptealpha.h -libgstsmpte_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(GST_CONTROLLER_CFLAGS) +libgstsmpte_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) libgstsmpte_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(LIBM) \ - -lgstvideo-$(GST_MAJORMINOR) \ - $(GST_CONTROLLER_LIBS) + -lgstvideo-$(GST_MAJORMINOR) libgstsmpte_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstsmpte_la_LIBTOOLFLAGS = --tag=disable-static diff --git a/gst/smpte/gstsmptealpha.c b/gst/smpte/gstsmptealpha.c index 030cb5d..b329617 100644 --- a/gst/smpte/gstsmptealpha.c +++ b/gst/smpte/gstsmptealpha.c @@ -53,8 +53,6 @@ #endif #include -#include - #include "gstsmptealpha.h" #include "paint.h" @@ -441,7 +439,7 @@ gst_smpte_alpha_before_transform (GstBaseTransform * trans, GstBuffer * buf) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (smpte), stream_time); + gst_object_sync_values (GST_OBJECT (smpte), stream_time); } static GstFlowReturn @@ -745,9 +743,6 @@ gst_smpte_alpha_plugin_init (GstPlugin * plugin) GST_DEBUG_CATEGORY_INIT (gst_smpte_alpha_debug, "smptealpha", 0, "SMPTE alpha effect"); - /* initialize gst controller library */ - gst_controller_init (NULL, NULL); - return gst_element_register (plugin, "smptealpha", GST_RANK_NONE, GST_TYPE_SMPTE_ALPHA); } diff --git a/gst/videobox/Makefile.am b/gst/videobox/Makefile.am index 90dcd4b..21f04a0 100644 --- a/gst/videobox/Makefile.am +++ b/gst/videobox/Makefile.am @@ -6,12 +6,10 @@ include $(top_srcdir)/common/orc.mak libgstvideobox_la_SOURCES = gstvideobox.c nodist_libgstvideobox_la_SOURCES = $(ORC_NODIST_SOURCES) libgstvideobox_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \ - $(GST_CONTROLLER_CFLAGS) \ $(GST_BASE_CFLAGS) \ $(GST_CFLAGS) \ $(ORC_CFLAGS) libgstvideobox_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ - $(GST_CONTROLLER_LIBS) \ $(GST_BASE_LIBS) \ $(GST_LIBS) \ $(ORC_LIBS) \ diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index f985488..2294d26 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -64,8 +64,6 @@ #include #include -#include - GST_DEBUG_CATEGORY_STATIC (videobox_debug); #define GST_CAT_DEFAULT videobox_debug @@ -3365,7 +3363,7 @@ gst_video_box_before_transform (GstBaseTransform * trans, GstBuffer * in) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (video_box), stream_time); + gst_object_sync_values (GST_OBJECT (video_box), stream_time); } static GstFlowReturn @@ -3389,8 +3387,6 @@ gst_video_box_transform (GstBaseTransform * trans, GstBuffer * in, static gboolean plugin_init (GstPlugin * plugin) { - gst_controller_init (NULL, NULL); - GST_DEBUG_CATEGORY_INIT (videobox_debug, "videobox", 0, "Resizes a video by adding borders or cropping"); diff --git a/gst/videofilter/Makefile.am b/gst/videofilter/Makefile.am index 4838c17..f974338 100644 --- a/gst/videofilter/Makefile.am +++ b/gst/videofilter/Makefile.am @@ -9,13 +9,12 @@ libgstvideofilter_la_SOURCES = plugin.c \ gstvideoflip.c \ gstvideobalance.c \ gstgamma.c -libgstvideofilter_la_CFLAGS = $(GST_CFLAGS) $(GST_CONTROLLER_CFLAGS) \ +libgstvideofilter_la_CFLAGS = $(GST_CFLAGS) \ $(GST_BASE_CFLAGS) \ $(GST_PLUGINS_BASE_CFLAGS) libgstvideofilter_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ -lgstvideo-@GST_MAJORMINOR@ \ -lgstinterfaces-@GST_MAJORMINOR@ \ - $(GST_CONTROLLER_LIBS) \ $(GST_BASE_LIBS) $(GST_LIBS) libgstvideofilter_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(LIBM) libgstvideofilter_la_LIBTOOLFLAGS = --tag=disable-static diff --git a/gst/videofilter/gstgamma.c b/gst/videofilter/gstgamma.c index 5873b4c..401aced 100644 --- a/gst/videofilter/gstgamma.c +++ b/gst/videofilter/gstgamma.c @@ -55,7 +55,6 @@ #include #include -#include GST_DEBUG_CATEGORY_STATIC (gamma_debug); #define GST_CAT_DEFAULT gamma_debug @@ -390,7 +389,7 @@ gst_gamma_before_transform (GstBaseTransform * base, GstBuffer * outbuf) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (gamma), stream_time); + gst_object_sync_values (GST_OBJECT (gamma), stream_time); } static GstFlowReturn diff --git a/gst/videofilter/gstvideobalance.c b/gst/videofilter/gstvideobalance.c index 5289c8f..3019435 100644 --- a/gst/videofilter/gstvideobalance.c +++ b/gst/videofilter/gstvideobalance.c @@ -49,7 +49,6 @@ #include "gstvideobalance.h" #include -#include #include GST_DEBUG_CATEGORY_STATIC (videobalance_debug); @@ -430,7 +429,7 @@ gst_video_balance_before_transform (GstBaseTransform * base, GstBuffer * buf) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (balance), stream_time); + gst_object_sync_values (GST_OBJECT (balance), stream_time); } static GstFlowReturn diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c index 7de5708..dea471a 100644 --- a/gst/videofilter/gstvideoflip.c +++ b/gst/videofilter/gstvideoflip.c @@ -48,7 +48,6 @@ #include #include -#include #include /* GstVideoFlip properties */ @@ -869,7 +868,7 @@ gst_video_flip_before_transform (GstBaseTransform * trans, GstBuffer * in) GST_TIME_ARGS (timestamp)); if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (videoflip), stream_time); + gst_object_sync_values (GST_OBJECT (videoflip), stream_time); } static GstFlowReturn diff --git a/gst/videofilter/plugin.c b/gst/videofilter/plugin.c index e0fcede..9e38173 100644 --- a/gst/videofilter/plugin.c +++ b/gst/videofilter/plugin.c @@ -22,7 +22,6 @@ #endif #include -#include #include "gstgamma.h" #include "gstvideoflip.h" @@ -31,8 +30,6 @@ static gboolean plugin_init (GstPlugin * plugin) { - gst_controller_init (NULL, NULL); - return (gst_element_register (plugin, "gamma", GST_RANK_NONE, GST_TYPE_GAMMA) && gst_element_register (plugin, "videobalance", GST_RANK_NONE, GST_TYPE_VIDEO_BALANCE) diff --git a/gst/videomixer/Makefile.am b/gst/videomixer/Makefile.am index 0cda826..d92a545 100644 --- a/gst/videomixer/Makefile.am +++ b/gst/videomixer/Makefile.am @@ -10,10 +10,10 @@ libgstvideomixer_la_SOURCES = \ nodist_libgstvideomixer_la_SOURCES = $(ORC_NODIST_SOURCES) libgstvideomixer_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \ - $(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) $(GST_CFLAGS) $(ORC_CFLAGS) + $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(ORC_CFLAGS) libgstvideomixer_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ -lgstvideo-@GST_MAJORMINOR@ \ - $(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) $(GST_LIBS) $(ORC_LIBS) + $(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) libgstvideomixer_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstvideomixer_la_LIBTOOLFLAGS = --tag=disable-static diff --git a/gst/videomixer/videomixer.c b/gst/videomixer/videomixer.c index 4ed5a5c..9b89e82 100644 --- a/gst/videomixer/videomixer.c +++ b/gst/videomixer/videomixer.c @@ -76,7 +76,6 @@ #include #include -#include #include #ifdef HAVE_STDLIB_H @@ -1444,7 +1443,7 @@ gst_videomixer_blend_buffers (GstVideoMixer * mix, GstBuffer * outbuf) /* sync object properties on stream time */ if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (pad), stream_time); + gst_object_sync_values (GST_OBJECT (pad), stream_time); blend (GST_BUFFER_DATA (mixcol->buffer), pad->xpos, pad->ypos, pad->in_width, pad->in_height, pad->alpha, diff --git a/gst/videomixer/videomixer2.c b/gst/videomixer/videomixer2.c index f7aead0..4223d70 100644 --- a/gst/videomixer/videomixer2.c +++ b/gst/videomixer/videomixer2.c @@ -91,8 +91,6 @@ #include "videomixer2.h" #include "videomixer2pad.h" -#include - #ifdef DISABLE_ORC #define orc_memset memset #else @@ -869,7 +867,7 @@ gst_videomixer2_blend_buffers (GstVideoMixer2 * mix, /* sync object properties on stream time */ if (GST_CLOCK_TIME_IS_VALID (stream_time)) - gst_object_sync_values (G_OBJECT (pad), stream_time); + gst_object_sync_values (GST_OBJECT (pad), stream_time); composite (GST_BUFFER_DATA (mixcol->buffer), pad->xpos, pad->ypos, pad->width, pad->height, pad->alpha, diff --git a/sys/v4l2/Makefile.am b/sys/v4l2/Makefile.am index b4431c1..86f4fd2 100644 --- a/sys/v4l2/Makefile.am +++ b/sys/v4l2/Makefile.am @@ -22,7 +22,6 @@ libgstvideo4linux2_la_SOURCES += gstv4l2sink.c libgstvideo4linux2_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \ $(GST_BASE_CFLAGS) \ - $(GST_CONTROLLER_CFLAGS) \ $(GST_CFLAGS) \ $(X_CFLAGS) \ $(LIBV4L2_CFLAGS) \ @@ -33,7 +32,6 @@ libgstvideo4linux2_la_LIBTOOLFLAGS = --tag=disable-static libgstvideo4linux2_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) \ $(GST_BASE_LIBS) \ - $(GST_CONTROLLER_LIBS) \ $(GST_PLUGINS_BASE_LIBS) \ -lgstvideo-$(GST_MAJORMINOR) \ -lgstinterfaces-$(GST_MAJORMINOR) \ diff --git a/sys/v4l2/gstv4l2.c b/sys/v4l2/gstv4l2.c index 061adcb..22959c6 100644 --- a/sys/v4l2/gstv4l2.c +++ b/sys/v4l2/gstv4l2.c @@ -28,7 +28,6 @@ #include "gst/gst-i18n-plugin.h" #include -#include #include "gstv4l2object.h" #include "gstv4l2src.h" @@ -48,9 +47,6 @@ plugin_init (GstPlugin * plugin) GST_DEBUG_CATEGORY_INIT (v4l2_debug, "v4l2", 0, "V4L2 API calls"); GST_DEBUG_CATEGORY_GET (GST_CAT_PERFORMANCE, "GST_PERFORMANCE"); - /* initialize gst controller library */ - gst_controller_init (NULL, NULL); - if (!gst_element_register (plugin, "v4l2src", GST_RANK_PRIMARY, GST_TYPE_V4L2SRC) || !gst_element_register (plugin, "v4l2sink", GST_RANK_NONE, diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h index aae6a8d..8134818 100644 --- a/sys/v4l2/gstv4l2object.h +++ b/sys/v4l2/gstv4l2object.h @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index 9775ab9..06e4c7c 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -659,7 +659,7 @@ gst_v4l2src_start (GstBaseSrc * src) /* activate settings for first frame */ v4l2src->ctrl_time = 0; - gst_object_sync_values (G_OBJECT (src), v4l2src->ctrl_time); + gst_object_sync_values (GST_OBJECT (src), v4l2src->ctrl_time); return TRUE; } @@ -797,7 +797,7 @@ gst_v4l2src_fill (GstPushSrc * src, GstBuffer * buf) */ v4l2src->ctrl_time = timestamp; } - gst_object_sync_values (G_OBJECT (src), v4l2src->ctrl_time); + gst_object_sync_values (GST_OBJECT (src), v4l2src->ctrl_time); GST_INFO_OBJECT (src, "sync to %" GST_TIME_FORMAT, GST_TIME_ARGS (v4l2src->ctrl_time)); diff --git a/tests/examples/shapewipe/shapewipe-example.c b/tests/examples/shapewipe/shapewipe-example.c index e3b49fe..1b2a69d 100644 --- a/tests/examples/shapewipe/shapewipe-example.c +++ b/tests/examples/shapewipe/shapewipe-example.c @@ -18,7 +18,6 @@ */ #include -#include #include #include @@ -78,7 +77,6 @@ main (gint argc, gchar ** argv) } gst_init (&argc, &argv); - gst_controller_init (&argc, &argv); if (argc > 2) { border = atof (argv[2]); @@ -99,7 +97,7 @@ main (gint argc, gchar ** argv) shapewipe = gst_bin_get_by_name (GST_BIN (pipeline), "shape"); - if (!(ctrl = gst_controller_new (G_OBJECT (shapewipe), "position", NULL))) { + if (!(ctrl = gst_controller_new (GST_OBJECT (shapewipe), "position", NULL))) { g_print ("can't control shapewipe element\n"); return -3; } diff --git a/tests/examples/v4l2/camctrl.c b/tests/examples/v4l2/camctrl.c index 3c7262a..af75d69 100644 --- a/tests/examples/v4l2/camctrl.c +++ b/tests/examples/v4l2/camctrl.c @@ -31,7 +31,6 @@ */ #include -#include #include static void @@ -130,7 +129,6 @@ main (gint argc, gchar ** argv) /* init gstreamer */ gst_init (&argc, &argv); - gst_controller_init (&argc, &argv); /* create a new bin to hold the elements */ bin = gst_pipeline_new ("camera"); @@ -172,7 +170,7 @@ main (gint argc, gchar ** argv) } /* get the controller */ - if (!(ctrl = gst_controller_new (G_OBJECT (src), "brightness", "contrast", + if (!(ctrl = gst_controller_new (GST_OBJECT (src), "brightness", "contrast", "saturation", NULL))) { GST_WARNING ("can't control source element"); return -1;