Commit graph

66 commits

Author SHA1 Message Date
Vineeth TM
8c9ca808af gstreamer: bad: Fix memory leaks when context parse fails
When g_option_context_parse fails, context and error variables are not getting free'd
which results in memory leaks. Free'ing the same.

And replacing g_error_free with g_clear_error, which checks if the error being passed
is not NULL and sets the variable to NULL on free'ing.

https://bugzilla.gnome.org/show_bug.cgi?id=753854
2015-10-02 17:24:35 +03:00
Ilya Averyanov
be1e9daff5 element-template: Fix wrong pad in videoencoder
https://bugzilla.gnome.org/show_bug.cgi?id=753326
2015-08-06 16:24:43 -04:00
Sebastian Rasmussen
9e50a4b8eb element-maker: Avoid leaking copy of caps object
gst_pad_get_pad_template_caps() returns a reference which is unreferenced,
so creating a copy using gst_caps_copy() results in a reference leak.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734539
2014-08-10 11:29:56 +01:00
David Schleef
15f4154b6a element-maker: Add transform functions to audiofilter 2013-05-18 14:02:18 -07:00
Sebastian Dröge
e51cd4fe2f gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
David Schleef
5dec0eddcb element-template: add start/stop to videofilter 2013-04-12 14:11:10 -07:00
David Schleef
98e7ec4153 element-templates: avoid using PadTemplates 2013-04-12 14:11:10 -07:00
David Schleef
12a4ff1100 element-templates: Add helper code to transform_caps 2013-04-12 14:11:09 -07:00
David Schleef
b11a36c6e8 element-maker: fix return value in videoencoder 2013-04-09 15:36:17 -07:00
David Schleef
5a70924251 gst-element-maker: create better element name when using --prefix 2013-04-09 15:36:17 -07:00
David Schleef
79af542fc6 element-maker: call up in basetransform template
More templates should be doing this: function implementations
should call up to the default implementation in the base class.
2013-04-01 19:53:01 -07:00
David Schleef
9e7db27966 element-maker: remove sinkpad/srcpad fields
Information is in the base class anyway, plus pad creation was
done incorrectly.
2013-03-19 17:28:16 -07:00
David Schleef
84faa2f8b8 element-maker: clean up bits from previous commit
Files that were supposed to be in the previous element-maker
commit.  This is what happens when cherry-pick doesn't work.
2013-03-15 20:30:01 -07:00
Rico Tzschichholz
7992c1c92e tools: Fix make dist
Missing bits of b45a1df5de
2013-03-15 16:49:21 +00:00
David Schleef
b45a1df5de element-maker: Update templates for 1.0
This are (almost) completely autogenerated from the documentation.
2013-03-14 23:57:06 -07:00
David Schleef
d3cd53226e gst-app-maker/gst-element-maker: 1.0 updates 2013-02-11 12:30:29 -08:00
David Schleef
be07743a9e gst-app-maker: convert to 1.0 2013-02-07 10:56:54 -08:00
David Schleef
f790fcbfa6 element-maker: Update somewhat for 1.0
Only converted basetransform for the moment.  It's probably easier
to write templates from scratch from the documentation.
2013-02-06 12:43:45 -08:00
Tim-Philipp Müller
9e1b75fda3 Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-04 00:09:59 +00:00
Tim-Philipp Müller
32ba17cd0f Use gst_element_class_set_static_metadata()
where possible. Avoids some string copies. Also re-indent
some stuff. Also some indent fixes here and there.
2012-10-17 17:46:34 +01:00
Wim Taymans
380b23af90 replace some playbin2 -> playbin 2012-10-10 14:14:43 +02:00
Mark Nauwelaerts
578861abea replace gst_element_class_set_details_simple with gst_element_class_set_metadata 2012-09-14 17:27:49 +02:00
Sebastian Dröge
cda192b3b7 gst: Update for GST_PLUGIN_DEFINE() API changes 2012-04-05 18:02:56 +02:00
Sebastian Dröge
860ccd414d Merge remote-tracking branch 'origin/0.10'
Conflicts:
	NEWS
	RELEASE
	common
	configure.ac
	docs/libs/gst-plugins-bad-libs-sections.txt
	docs/plugins/gst-plugins-bad-plugins.args
	docs/plugins/gst-plugins-bad-plugins.hierarchy
	docs/plugins/gst-plugins-bad-plugins.interfaces
	docs/plugins/inspect/plugin-adpcmdec.xml
	docs/plugins/inspect/plugin-adpcmenc.xml
	docs/plugins/inspect/plugin-assrender.xml
	docs/plugins/inspect/plugin-audiovisualizers.xml
	docs/plugins/inspect/plugin-autoconvert.xml
	docs/plugins/inspect/plugin-bayer.xml
	docs/plugins/inspect/plugin-bz2.xml
	docs/plugins/inspect/plugin-camerabin2.xml
	docs/plugins/inspect/plugin-celt.xml
	docs/plugins/inspect/plugin-dataurisrc.xml
	docs/plugins/inspect/plugin-debugutilsbad.xml
	docs/plugins/inspect/plugin-dtmf.xml
	docs/plugins/inspect/plugin-dtsdec.xml
	docs/plugins/inspect/plugin-dvbsuboverlay.xml
	docs/plugins/inspect/plugin-dvdspu.xml
	docs/plugins/inspect/plugin-faac.xml
	docs/plugins/inspect/plugin-faad.xml
	docs/plugins/inspect/plugin-gsm.xml
	docs/plugins/inspect/plugin-h264parse.xml
	docs/plugins/inspect/plugin-mms.xml
	docs/plugins/inspect/plugin-modplug.xml
	docs/plugins/inspect/plugin-mpeg2enc.xml
	docs/plugins/inspect/plugin-mpegdemux2.xml
	docs/plugins/inspect/plugin-mpegtsdemux.xml
	docs/plugins/inspect/plugin-mpegvideoparse.xml
	docs/plugins/inspect/plugin-mplex.xml
	docs/plugins/inspect/plugin-pcapparse.xml
	docs/plugins/inspect/plugin-rawparse.xml
	docs/plugins/inspect/plugin-rtpmux.xml
	docs/plugins/inspect/plugin-rtpvp8.xml
	docs/plugins/inspect/plugin-scaletempo.xml
	docs/plugins/inspect/plugin-schro.xml
	docs/plugins/inspect/plugin-sdp.xml
	docs/plugins/inspect/plugin-segmentclip.xml
	docs/plugins/inspect/plugin-shm.xml
	docs/plugins/inspect/plugin-videomaxrate.xml
	docs/plugins/inspect/plugin-videoparsersbad.xml
	docs/plugins/inspect/plugin-vp8.xml
	docs/plugins/inspect/plugin-y4mdec.xml
	ext/celt/gstceltdec.c
	ext/dts/gstdtsdec.c
	ext/modplug/gstmodplug.cc
	ext/opus/gstopusenc.c
	gst-libs/gst/video/gstbasevideocodec.c
	gst-libs/gst/video/gstbasevideocodec.h
	gst-libs/gst/video/gstbasevideodecoder.c
	gst-libs/gst/video/gstbasevideodecoder.h
	gst-libs/gst/video/gstbasevideoencoder.c
	gst-libs/gst/video/gstbasevideoencoder.h
	gst/adpcmdec/Makefile.am
	gst/audiovisualizers/gstbaseaudiovisualizer.c
	gst/h264parse/gsth264parse.c
	gst/mpegdemux/mpegtsparse.c
	gst/mpegtsdemux/mpegtsbase.c
	gst/mpegtsdemux/mpegtspacketizer.c
	gst/mpegtsdemux/mpegtsparse.c
	gst/mpegtsdemux/tsdemux.c
	gst/mpegtsdemux/tsdemux.h
	gst/mxf/mxfdemux.c
	gst/rawparse/gstaudioparse.c
	gst/videoparsers/gsth263parse.c
	gst/videoparsers/gsth264parse.c
	sys/d3dvideosink/d3dvideosink.c
	sys/decklink/gstdecklinksink.cpp
	sys/dvb/gstdvbsrc.c
	sys/shm/gstshmsrc.c
	sys/vdpau/h264/gstvdph264dec.c
	sys/vdpau/mpeg/gstvdpmpegdec.c
	tests/examples/opencv/gst_element_print_properties.c
	win32/common/config.h
2012-03-29 17:41:53 +02:00
David Schleef
b45c206647 element-templates: chain query/event functions
Chain up to parent class.  This fix should be done to all of the
templates.
2012-03-17 12:18:47 -07:00
Tim-Philipp Müller
9aa9903430 gst-element-maker: fix -template-video caps string
Don't forget separator.
2012-03-17 16:09:31 +00:00
Tim-Philipp Müller
3991742d77 gst-element-maker: add video pad template and use it in videofilter class
Would be nicer if one could just supplement the generic template
from the element template though.

Also, I would really have liked to just add those sections from the
pads template into the element templet directly (so I can cater for
src template caps == sink template caps), but that didn't seem to
work.
2012-03-17 16:05:20 +00:00
Tim-Philipp Müller
48398114e6 gst-element-maker: add {src,sink}pad-template, since many base classes create pads for us
And use them in the videofilter template.
2012-03-17 15:49:45 +00:00
Tim-Philipp Müller
e504dc3f6b tools: add videofilter template for gst-element-maker 2012-03-17 15:16:29 +00:00
Wim Taymans
320d0838f3 Merge branch 'master' into 0.11
Conflicts:
	gst/colorspace/colorspace.c
2012-02-21 10:06:16 +01:00
David Schleef
e8af6da24a gst-project-maker: Create tools, pass make distcheck
Create a tools directory for an application.  Add source code
stubs to allow the project to compile and pass make distcheck.
Add notes in source code to tell the user how to create plugin
or app code using the other -maker scripts.
2012-02-20 18:13:47 -08:00
Wim Taymans
a9f5def9d1 Merge branch 'master' into 0.11
Conflicts:
	ext/opus/gstopusparse.c
	gst/colorspace/colorspace.c
2012-02-20 16:07:50 +01:00
David Schleef
f3456aeaa1 gst-project-maker: Create autotools project
This is a replacement for gst-template that creates an entire
autotools project (customized to package name), and populates
it with the source for a GStreamer plugin (but no plugin features,
those come from gst-element-maker).  Fixes: #665727.
2012-02-19 15:54:39 -08:00
Vincent Penquerc'h
7521b597f4 various: fix pad template ref leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
2011-11-28 13:08:27 +00:00
Wim Taymans
8546951222 chain up in set_clock 2011-11-10 12:11:21 +01:00
Stefan Kost
c46725845b element-templates: improve the audiofilter template
Add comments. Add start/stop methods. Add (commented) instance casts at the
begin of the method. Make transform_ip returning FLOW_OK by default.
2011-05-18 10:31:38 +03:00
Stefan Kost
f76feeb632 element-maker: improve plugin_init()
Return the result of gst_element_register(). Use the TYPE macro instead of the
_get_type() function.
2011-05-18 10:31:38 +03:00
Tim-Philipp Müller
aaf14dd40a tools: disable new gst-element-maker test
It doesn't seem to work in an uninstalled setup, and
breaks make distcheck for me.
2011-04-27 23:43:03 +01:00
Stefan Kost
f478429895 element-maker: the broekn templates are not broekn, but dependencies
Rename the list and dist them. We need them for the actual templates.
2011-04-27 01:14:20 +03:00
Stefan Kost
bec03b8e19 element-maker: set CPPFLAGS to make templates using uninstalled headers work 2011-04-26 15:21:50 +03:00
Stefan Kost
f7f5946fd3 element-maker: fixup gobject template a bit but disable for now
The template contains things we already define by default.
2011-04-26 15:21:47 +03:00
Stefan Kost
795bf6c53b element-templates: fix templates
Use the object class and not the object in the init function. Set the vmethods.
Add default returns.
2011-04-26 15:21:07 +03:00
Stefan Kost
9bec684c3e element-maker: don't dist incomplete templates
Move not working templates to a separate variable to highlight the fact that
they need more work. These need at least the class and type fields filled.
2011-04-26 15:20:48 +03:00
Stefan Kost
c1e91cb168 element-maker-test: try to run element-maker for all templates
Add an easy way to check the element-maker templates.
2011-04-26 15:17:30 +03:00
Stefan Kost
e32a6f9471 element-maker: make it fail, when compilation fails 2011-04-26 15:17:29 +03:00
Stefan Kost
a161f901eb element-maker: allow to run from a different working directory
Get the dirname for the script and use that to reference the templates. Use the
templatedir variable to check for templates.
2011-04-26 03:42:55 -04:00
David Schleef
9f38ae9227 element-maker: lowercasify input
This allows using capitalized acronyms in class names, so using
"AVC_src" on the command line will create filename gstavcsrc.c,
class name GstAVCSrc, and symbol names gst_avc_src_*.
2011-04-24 19:40:09 -07:00
Tim-Philipp Müller
fb0222ea67 element-templates: clean up gobject template a bit
Remove pointless g_return_if_fail (G_IS_FOO (obj)) checks in
vfunc implementations. Comment out unused variables to avoid
warnings with gcc 4.6.
2011-04-15 00:24:47 +01:00
Tim-Philipp Müller
d82c63df98 element-maker: dist new videofilter2 template 2011-04-10 00:26:47 +01:00
Tim-Philipp Müller
581714bff0 baseparse: remove -bad version of baseparse library, now in core 2011-04-09 00:38:02 +01:00