[gst-cvs] gst-plugins-bad: tools: Add element-maker

David Schleef ds at kemper.freedesktop.org
Wed Apr 14 17:01:21 PDT 2010


Module: gst-plugins-bad
Branch: master
Commit: f6f9563dc80ad993a0535e1484c893509753966f
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=f6f9563dc80ad993a0535e1484c893509753966f

Author: David Schleef <ds at schleef.org>
Date:   Wed Apr 14 16:32:34 2010 -0700

tools: Add element-maker

Add a script that creates elements based on any of the GStreamer
base classes.  It isn't very user friendly at the moment, one
needs to edit the script to make it work properly.  Each base class
has a template file describing what to put into the constructed
element.  Eventually, these templates should be moved to reside
with the base class source and installed to a well-known directory,
where an installed script could find them.

The template files use the .c ending so editors know they are C
source, but gst-indent doesn't handle them correctly.  So they
need to be committed with -n.  Ugh.  I'll try to figure out a fix
for that soon.

---

 Makefile.am                 |    4 +-
 configure.ac                |    1 +
 tools/Makefile.am           |   20 ++++
 tools/base.c                |   33 ++++++
 tools/element-maker         |  233 +++++++++++++++++++++++++++++++++++++++++++
 tools/gobject.c             |   80 +++++++++++++++
 tools/gstaudiofilter.c      |   23 ++++
 tools/gstaudiosink.c        |   58 +++++++++++
 tools/gstaudiosrc.c         |   59 +++++++++++
 tools/gstbaseaudiosink.c    |   22 ++++
 tools/gstbaseaudiosrc.c     |   22 ++++
 tools/gstbasertpdepayload.c |   57 +++++++++++
 tools/gstbasertppayload.c   |   46 +++++++++
 tools/gstbasesink.c         |  130 ++++++++++++++++++++++++
 tools/gstbasesrc.c          |  150 +++++++++++++++++++++++++++
 tools/gstbasetransform.c    |  154 ++++++++++++++++++++++++++++
 tools/gstcddabasesrc.c      |   51 ++++++++++
 tools/gstelement.c          |  118 ++++++++++++++++++++++
 tools/gstpushsrc.c          |   22 ++++
 tools/gsttagdemux.c         |   47 +++++++++
 tools/gstvideosink.c        |   29 ++++++
 21 files changed, 1357 insertions(+), 2 deletions(-)

Diff:   http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/diff/?id=f6f9563dc80ad993a0535e1484c893509753966f




More information about the Gstreamer-commits mailing list