Commit 033ea634 authored by Lori Anderson's avatar Lori Anderson

Adding initial snapshot of files from Eric W

parents
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>la-plugin</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
<dictionary>
<key>?name?</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.append_environment</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
<value>all</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildArguments</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildCommand</key>
<value>make</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildLocation</key>
<value>${workspace_loc:/la-plugin/Debug}</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
<value>clean</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.contents</key>
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
<value>false</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
<value>all</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.stopOnError</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
<value>true</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
Thomas Vander Stichele <thomas@apestaart.org>
Put your license in here!
2008-11-04 Stefan Kost <ensonic@users.sf.net>
* src/Makefile.am:
Don't install static libs for plugins. Fixes #550851 for the template.
2008-10-30 Stefan Kost <ensonic@users.sf.net>
* tools/make_element:
Don't replace GstPlugin.
2008-08-11 Stefan Kost <ensonic@users.sf.net>
* README:
* src/gstaudiofilter.c:
* src/gstplugin.c:
* src/gsttransform.c:
* tools/make_element:
Integrate new template and improve search'n'replace ops. Update
templates to use current API.
2008-07-26 Stefan Kost <ensonic@users.sf.net>
* tools/make_element:
Fix username detection. tries getent first and falls back to grep
passwd. Spotted by Karoly Segesdi.
2008-06-09 Jan Schmidt <jan.schmidt@sun.com>
* src/gstplugin.c:
Fix some memory leaks, and make the setcaps function actually
sets the caps on the other pad.
2008-05-08 Stefan Kost <ensonic@users.sf.net>
* README:
Add simple usage explanation and make it look like the other READMEs.
* src/gstplugin.c:
* src/gstplugin.h:
* src/gsttransform.c:
* src/gsttransform.h:
* tools/make_element:
Add year, username and email fields. Update the templates here and
there a bit. Add more comments.
2007-08-01 Tim-Philipp Müller <tim at centricular dot net>
* src/gsttransform.c:
Include right header to avoid structure size mismatches etc.
2007-07-25 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Steve Fink <sphink gmail com>
* src/gstplugin.c:
Use GST_DEBUG_FUNCPTR() macros where it makes sense.
2007-07-19 Stefan Kost <ensonic@users.sf.net>
* configure.ac:
Fix CVS-build detection.
2007-01-23 Tim-Philipp Müller <tim at centricular dot net>
* src/Makefile.am:
Make clearer which Makefile variables need renaming if the plugin
name is changes (#399746) (pretty it is not, but it's the content
that counts, right?)
2007-01-22 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Philip Jägenstedt <philipj at opera com>
* tools/make_element:
Translate FOO_IS_MY_PLUGIN macro as well according to the template
(#399323).
2006-07-04 Tim-Philipp Müller <tim at centricular dot net>
* autogen.sh:
Run autoheader to create config.h.in and fix the build.`
2006-07-03 Tim-Philipp Müller <tim at centricular dot net>
* Makefile.am:
* autogen.sh:
* gst-autogen.sh:
Throw an error if autotools versions are too old. We require
automake 1.7 or newer (#346054). Add gst-autogen.sh to check
for this.
* COPYING:
Add placeholder COPYING file so it doesn't get overwritten
by a GPL one by automake.
2006-06-22 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Philip Jägenstedt <philip at lysator liu se>
* src/gstplugin.c: (gst_plugin_template_base_init),
(gst_plugin_template_class_init), (gst_plugin_template_init),
(plugin_init):
Use GST_BOILERPLATE, add debug category (#345601).
2006-04-20 Stefan Kost <ensonic@users.sf.net>
Patch by: Johan Rydberg <jrydberg@gnu.org>
* src/gstplugin.c: (gst_plugin_template_get_type),
(gst_plugin_template_base_init), (gst_plugin_template_class_init),
(gst_plugin_template_set_property),
(gst_plugin_template_get_property):
* src/gstplugin.h:
* src/gsttransform.c: (gst_plugin_template_base_init),
(gst_plugin_template_set_property),
(gst_plugin_template_get_property):
* tools/make_element:
remove double gst_get_, fix '_' in names
2006-02-26 Tim-Philipp Müller <tim at centricular dot net>
* src/gstplugin.c: (gst_plugin_template_init),
(gst_plugin_template_chain):
Fix function declaration of _init() function.
Remove unnecessary assertion clutter in chain function
(that also failed to return a flow value, causing
compiler warnings).
2006-02-07 Stefan Kost <ensonic@users.sf.net>
* src/gstplugin.c: (gst_plugin_template_set_caps),
(gst_plugin_template_chain):
* src/gsttransform.c: (gst_plugin_template_transform_ip):
more code cleanups, more comments
2006-02-07 Stefan Kost <ensonic@users.sf.net>
* configure.ac:
allow installing to $HOME
* src/gstplugin.c: (gst_plugin_template_base_init),
(gst_plugin_template_init):
* src/gstplugin.h:
* src/gsttransform.c: (gst_plugin_template_base_init),
(gst_plugin_template_class_init), (gst_plugin_template_init),
(gst_plugin_template_transform_ip),
(gst_plugin_template_set_property),
(gst_plugin_template_get_property), (plugin_init):
* src/gsttransform.h:
add another template
* tools/make_element:
fix generator, when template (arg2) is given
2006-01-23 Tim-Philipp Müller <tim at centricular dot net>
* src/gstplugin.h:
FOO_BAR_CLASS(klass) should cast to FooBarClass*,
not FooBar*.
2006-01-13 Thomas Vander Stichele <thomas at apestaart dot org>
* autogen.sh:
* configure.ac:
* src/Makefile.am:
* src/gstplugin.c:
bring into the 0.10 world
Fix #315582
2005-12-16 Jan Schmidt <thaytan@mad.scientist.com>
* src/gstplugin.c: (gst_plugin_template_class_init):
Need to have the set_property and get_property methods
before installing properties
2005-12-14 Tim-Philipp Müller <tim at centricular dot net>
* src/gstplugin.h:
Fix GST_IS_FOO_BAR_CLASS macro.
2005-06-30 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* configure.ac:
* src/gstplugin.c: (gst_plugin_template_set_caps),
(gst_plugin_template_init), (gst_plugin_template_chain):
Fix for GStreamer 0.9.
2004-04-22 Thomas Vander Stichele <thomas at apestaart dot org>
* Makefile.am:
* autogen.sh:
* configure.ac:
* src/Makefile.am:
use proper LDFLAGS for plugins
run in maintainer mode by default
2004-04-22 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac: ... and fix comments too
2004-04-03 Benjamin Otte <otte@gnome.org>
* configure.ac:
update for GStreamer 0.8
2004-01-25 Ronald Bultje <rbultje@ronald.bitfreak.net>
* src/gstplugin.c: (gst_plugin_template_link),
(gst_plugin_template_base_init), (gst_plugin_template_init):
Fix for GStreamer 0.7.x.
2003-02-06 Thomas Vander Stichele <thomas at apestaart dot org>
* updated for GStreamer 0.6.0
2002-07-17 Thomas Vander Stichele <thomas at apestaart dot org>
* initial creation on a flight to New York
This diff is collapsed.
This diff is collapsed.
SUBDIRS = src
EXTRA_DIST = autogen.sh
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Nothing much yet.
WHAT IT IS
----------
gst-plugin is a template for writing your own GStreamer plug-in.
The code is deliberately kept simple so that you quickly understand the basics
of how to set up autotools and your source tree.
This template demonstrates :
- what to do in autogen.sh
- how to setup configure.ac (your package name and version, GStreamer flags)
- how to setup your source dir
- what to put in Makefile.am
More features and templates might get added later on.
HOW TO USE IT
-------------
To use it, either make a copy for yourself and rename the parts or use the
make_element script in tools. To create sources for "myfilter" based on the
"gsttransform" template run:
cd src;
../tools/make_element myfilter gsttransform
This will create gstmyfilter.c and gstmyfilter.h. Open them in an editor and
start editing. There are several occurances of the string "template", update
those with real values. The plugin will be called 'myfilter' and it will have
one element called 'myfilter' too. Also look for "FIXME:" markers that point you
to places where you need to edit the code.
You still need to adjust the Makefile.am.
This diff is collapsed.
#!/bin/sh
# you can either set the environment variables AUTOCONF, AUTOHEADER, AUTOMAKE,
# ACLOCAL, AUTOPOINT and/or LIBTOOLIZE to the right versions, or leave them
# unset and get the defaults
autoreconf --verbose --force --install --make || {
echo 'autogen.sh failed';
exit 1;
}
./configure || {
echo 'configure failed';
exit 1;
}
echo
echo "Now type 'make' to compile this module."
echo
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "my-plugin-package"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME "my-plugin-package"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "my-plugin-package 0.10.0"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "my-plugin-package"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.10.0"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "0.10.0"
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
dnl required version of autoconf
AC_PREREQ([2.53])
dnl TODO: fill in your package name and package version here
AC_INIT([my-plugin-package],[0.10.0])
dnl required versions of gstreamer and plugins-base
GST_REQUIRED=0.10.16
GSTPB_REQUIRED=0.10.16
AC_CONFIG_SRCDIR([src/gstcldemux.c])
AC_CONFIG_HEADERS([config.h])
dnl required version of automake
AM_INIT_AUTOMAKE([1.10])
dnl enable mainainer mode by default
AM_MAINTAINER_MODE([enable])
dnl check for tools (compiler etc.)
AC_PROG_CC
AC_PROG_CXX
dnl required version of libtool
LT_PREREQ([2.2.6])
LT_INIT
dnl give error and exit if we don't have pkgconfig
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, [ ], [
AC_MSG_ERROR([You need to have pkg-config installed!])
])
dnl Check for the required version of GStreamer core (and gst-plugins-base)
dnl This will export GST_CFLAGS and GST_LIBS variables for use in Makefile.am
dnl
dnl If you need libraries from gst-plugins-base here, also add:
dnl for libgstaudio-0.10: gstreamer-audio-0.10 >= $GST_REQUIRED
dnl for libgstvideo-0.10: gstreamer-video-0.10 >= $GST_REQUIRED
dnl for libgsttag-0.10: gstreamer-tag-0.10 >= $GST_REQUIRED
dnl for libgstpbutils-0.10: gstreamer-pbutils-0.10 >= $GST_REQUIRED
dnl for libgstfft-0.10: gstreamer-fft-0.10 >= $GST_REQUIRED
dnl for libgstinterfaces-0.10: gstreamer-interfaces-0.10 >= $GST_REQUIRED
dnl for libgstrtp-0.10: gstreamer-rtp-0.10 >= $GST_REQUIRED
dnl for libgstrtsp-0.10: gstreamer-rtsp-0.10 >= $GST_REQUIRED
dnl etc.
PKG_CHECK_MODULES(GST, [
gstreamer-0.10 >= $GST_REQUIRED
gstreamer-base-0.10 >= $GST_REQUIRED
gstreamer-controller-0.10 >= $GST_REQUIRED
], [
AC_SUBST(GST_CFLAGS)
AC_SUBST(GST_LIBS)
], [
AC_MSG_ERROR([
You need to install or upgrade the GStreamer development
packages on your system. On debian-based systems these are
libgstreamer0.10-dev and libgstreamer-plugins-base0.10-dev.
on RPM-based systems gstreamer0.10-devel, libgstreamer0.10-devel
or similar. The minimum version required is $GST_REQUIRED.
])
])
dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
AC_MSG_CHECKING([to see if compiler understands -Wall])
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ], [ ])], [
GST_CFLAGS="$GST_CFLAGS -Wall"
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
])
dnl set the plugindir where plugins should be installed (for src/Makefile.am)
if test "x${prefix}" = "x$HOME"; then
plugindir="$HOME/.gstreamer-0.10/plugins"
else
plugindir="\$(libdir)/gstreamer-0.10"
fi
AC_SUBST(plugindir)
dnl set proper LDFLAGS for plugins
GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
AC_SUBST(GST_PLUGIN_LDFLAGS)
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
AC_PROG_CXX
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
* Note this code is just for FBY testing and was copied from:
* http://felipec.wordpress.com/2008/01/19/gstreamer-hello-world/
*/
#include <gst/gst.h>
#include <stdbool.h>
static GMainLoop *loop;
static gboolean bus_call(GstBus *bus, GstMessage *msg, void *user_data)
{
switch (GST_MESSAGE_TYPE(msg)) {
case GST_MESSAGE_EOS: {
g_message("End-of-stream");
g_main_loop_quit(loop);
break;
}
case GST_MESSAGE_ERROR: {
GError *err;
gst_message_parse_error(msg, &err, NULL);
g_error("%s", err->message);
g_error_free(err);
g_main_loop_quit(loop);
break;
}
default:
break;
}
return 1; // true
}
static void play_uri(const char *uri)
{
GstElement *pipeline;
GstBus *bus;
loop = g_main_loop_new(NULL, FALSE);
pipeline = gst_element_factory_make("playbin", "player");
if (uri) {
g_object_set(G_OBJECT(pipeline), "uri", uri, NULL);
}
bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
gst_bus_add_watch(bus, bus_call, NULL);
gst_object_unref(bus);
gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING);
g_main_loop_run(loop);
gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_NULL);
gst_object_unref(GST_OBJECT(pipeline));
}
int main(int argc, char *argv[]) {
gst_init(&argc, &argv);
play_uri(argv[1]);
return 0;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.