After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685450 - gst-template: port audiofilter template to 1.0
gst-template: port audiofilter template to 1.0
Status: RESOLVED DUPLICATE of bug 764409
Product: GStreamer
Classification: Platform
Component: dont know
git master
Other Linux
: Normal enhancement
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-03 22:39 UTC by rossabri
Modified: 2016-04-30 15:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description rossabri 2012-10-03 22:39:51 UTC
git clone git://anongit.freedesktop.org/gstreamer/gst-template.git && cd gst-template
cp -PR gst-plugin gst-plugin-foo && cd gst-plugin-foo/src
../tools/make_element Foo gstaudiofilter
nano Makefile.am # edit as necessary
cd .. && ./autogen.sh && make
--------------------------------------------------------------------------------
make  all-recursive
make[1]: Entering directory `/home/br/dev/cocktail/build/gst-template/gst-plugin-foo'
Making all in src
make[2]: Entering directory `/home/br/dev/cocktail/build/gst-template/gst-plugin-foo/src'
/bin/bash ../libtool  --tag=CC --tag=disable-static  --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -Wall -g -O2 -Wall -MT libgstfoofilter_la-gstfoofilter.lo -MD -MP -MF .deps/libgstfoofilter_la-gstfoofilter.Tpo -c -o libgstfoofilter_la-gstfoofilter.lo `test -f 'gstfoofilter.c' || echo './'`gstfoofilter.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall -g -O2 -Wall -MT libgstfoofilter_la-gstfoofilter.lo -MD -MP -MF .deps/libgstfoofilter_la-gstfoofilter.Tpo -c gstfoofilter.c  -fPIC -DPIC -o .libs/libgstfoofilter_la-gstfoofilter.o
gstfoofilter.c:115:37: error: unknown type name 'gst_foo_filter'
gstfoofilter.c:116:21: error: expected declaration specifiers or '...' before '(' token
gstfoofilter.c:116:44: error: unknown type name 'DEBUG_INIT'
gstfoofilter.c:124:5: error: unknown type name 'GstRingBufferSpec'
gstfoofilter.c: In function 'gst_foo_filter_base_init':
gstfoofilter.c:149:32: error: 'GST_AUDIO_INT_STANDARD_PAD_TEMPLATE_CAPS' undeclared (first use in this function)
gstfoofilter.c:149:32: note: each undeclared identifier is reported only once for each function it appears in
gstfoofilter.c: In function 'gst_foo_filter_class_init':
gstfoofilter.c:176:31: error: 'gst_foo_filter_setup' undeclared (first use in this function)
gstfoofilter.c: In function 'gst_foo_filter_set_property':
gstfoofilter.c:197:3: warning: implicit declaration of function 'gst_foo_filter_get_type' [-Wimplicit-function-declaration]
gstfoofilter.c: At top level:
gstfoofilter.c:225:5: error: unknown type name 'GstRingBufferSpec'
gstfoofilter.c: In function 'gst_foo_filter_filter':
gstfoofilter.c:255:3: warning: implicit declaration of function 'GST_BUFFER_DATA' [-Wimplicit-function-declaration]
gstfoofilter.c:256:7: warning: implicit declaration of function 'GST_BUFFER_SIZE' [-Wimplicit-function-declaration]
gstfoofilter.c:256:7: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:49:1: note: expected 'void * __restrict__' but argument is of type 'int'
gstfoofilter.c:256:7: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [enabled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:49:1: note: expected 'const void * __restrict__' but argument is of type 'int'
gstfoofilter.c:247:19: warning: variable 'audiofilter' set but not used [-Wunused-but-set-variable]
gstfoofilter.c:246:17: warning: variable 'foofilter_template' set but not used [-Wunused-but-set-variable]
gstfoofilter.c: In function 'gst_foo_filter_filter_inplace':
gstfoofilter.c:266:19: warning: variable 'audiofilter' set but not used [-Wunused-but-set-variable]
gstfoofilter.c:265:17: warning: variable 'foofilter_template' set but not used [-Wunused-but-set-variable]
gstfoofilter.c: At top level:
gstfoofilter.c:137:1: warning: 'gst_foo_filter_base_init' defined but not used [-Wunused-function]
gstfoofilter.c:155:1: warning: 'gst_foo_filter_class_init' defined but not used [-Wunused-function]
gstfoofilter.c:185:1: warning: 'gst_foo_filter_init' defined but not used [-Wunused-function]
make[2]: *** [libgstfoofilter_la-gstfoofilter.lo] Error 1
make[2]: Leaving directory `/home/br/dev/cocktail/build/gst-template/gst-plugin-foo/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/br/dev/cocktail/build/gst-template/gst-plugin-foo'
make: *** [all] Error 2
Comment 1 Tim-Philipp Müller 2014-11-24 10:44:49 UTC
gst-template is supposed to be replaced by the element-maker tools in gst-plugins-bad, so not sure if this will ever get ported.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2015-01-19 09:33:29 UTC
And element-maker supports audiofilter:
http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tools/element-templates/audiofilter

Shall we just remove gst-template? Not sure how much the app template is useful for.
Comment 3 Tim-Philipp Müller 2016-04-30 15:49:10 UTC
This was fixed a while back:

commit c33c6dea118726cd1ae769e315f43f033df382f6
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Sat Apr 2 11:37:10 2016 +0100

    plugin: port audio filter example to 1.0
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764409

*** This bug has been marked as a duplicate of bug 764409 ***