Stefan Sauer [Fri, 21 Oct 2011 12:20:40 +0000 (14:20 +0200)]
interfaces: clean up the use of iface and class/klass
Stefan Sauer [Fri, 21 Oct 2011 09:15:11 +0000 (11:15 +0200)]
docs: spelling and formatting fixes
Edward Hervey [Fri, 21 Oct 2011 08:52:46 +0000 (10:52 +0200)]
Merging origin/master
Conflicts:
gst/gstbin.c
gst/gstbus.c
gst/gstdebugutils.c
gst/gstpad.c
libs/gst/base/gstbaseparse.c
libs/gst/base/gstbasesrc.c
Reynaldo H. Verdejo Pinochet [Thu, 20 Oct 2011 13:45:30 +0000 (10:45 -0300)]
Fix broken android building due to name change in
01d87250a845e55d6
Sebastian Dröge [Thu, 20 Oct 2011 06:31:18 +0000 (08:31 +0200)]
basebarse: Add detect vfunc to allow subclasses to do format detection before anything else
API: GstBaseParseClass::detect()
This is called with the first buffers until the subclass has finished detection
and only afterwards the original buffers are handled as before. The vfunc allows
detection of the stream format without breaking the upstream framing.
Stefan Sauer [Thu, 20 Oct 2011 06:57:57 +0000 (08:57 +0200)]
pad: not only describe conditions in the docs, also check them in the code
When blocking pads, check if the pad is in the rigt direction. Log some info
for the developer and return FALSE, instead of just locking up.
René Stadler [Wed, 19 Oct 2011 21:07:46 +0000 (23:07 +0200)]
Revert gst_plugin_feature_get_name to const string return
Returning a newly allocated string makes no sense. It's unexpected for a
getter, and also this behaves differently in 0.10, so it would make future
merges harder.
Except for these two places here in core which were updated for the new
semantic, the return value is getting leaked all over the place.
Edward Hervey [Wed, 19 Oct 2011 10:12:36 +0000 (12:12 +0200)]
gstobject: Add (skip) annotation to gst_object_ref_sink
Edward Hervey [Wed, 19 Oct 2011 09:59:29 +0000 (11:59 +0200)]
gstiterator: Add skip annotation for creating GstIterator
Not really useful for bindings
Johan Dahlin [Mon, 29 Aug 2011 16:56:19 +0000 (13:56 -0300)]
introspection: Skip gst_poll apis
https://bugzilla.gnome.org/show_bug.cgi?id=657640
Johan Dahlin [Mon, 29 Aug 2011 16:55:13 +0000 (13:55 -0300)]
introspection: Skip GType and GValue transform apis
These do not make sense to expose to language bindings
https://bugzilla.gnome.org/show_bug.cgi?id=657640
Johan Dahlin [Mon, 29 Aug 2011 16:54:21 +0000 (13:54 -0300)]
introspection: Skip gst_init_get_option_group
It uses GOptionGroup which is not wrappable
https://bugzilla.gnome.org/show_bug.cgi?id=657640
Johan Dahlin [Mon, 29 Aug 2011 16:53:39 +0000 (13:53 -0300)]
introspection: Add missing annotations
https://bugzilla.gnome.org/show_bug.cgi?id=657640
Johan Dahlin [Mon, 29 Aug 2011 16:52:26 +0000 (13:52 -0300)]
introspection: Rename gst_bus_add_watch_full to gst_bus_add_watch
https://bugzilla.gnome.org/show_bug.cgi?id=657640
Johan Dahlin [Mon, 29 Aug 2011 16:50:40 +0000 (13:50 -0300)]
Sync documentation arguments
The introspection scanner warns if the header and the source
uses mismatching parameter names.
https://bugzilla.gnome.org/show_bug.cgi?id=657640
Johan Dahlin [Mon, 29 Aug 2011 16:50:02 +0000 (13:50 -0300)]
Add gst_structure_get_type
https://bugzilla.gnome.org/show_bug.cgi?id=657640
Thiago Santos [Tue, 18 Oct 2011 22:21:58 +0000 (19:21 -0300)]
message: protect against null message sources
Message sources can be null, check if it is before trying to
access its name.
Thiago Santos [Tue, 18 Oct 2011 11:48:37 +0000 (08:48 -0300)]
baseparse: add since doc to new getcaps function
Stefan Sauer [Tue, 18 Oct 2011 12:08:19 +0000 (14:08 +0200)]
logging: more logging and prefer human readable details over memory locations
Stefan Sauer [Tue, 18 Oct 2011 12:05:37 +0000 (14:05 +0200)]
debugutils: improve display of ghost- and proxypads
Handle virtual links between ghost and proxypads when iterating pads instead of
when linking. Besides using less code this provides a more accurate picture.
Edward Hervey [Tue, 18 Oct 2011 11:54:52 +0000 (13:54 +0200)]
controller: Add g-i annotations and remove "Since:" markers
Thiago Santos [Mon, 17 Oct 2011 17:42:08 +0000 (14:42 -0300)]
baseparse: add getcaps function
Adds a getcaps function to the sink pad to make parsers propagate
downstream caps restrictions to upstream.
The pipeline "audiotestsrc num-buffers=100 ! faac ! aacparse !
"audio/mpeg, version=(int)4, stream-format=(string)adts" ! filesink"
wouldn't work because aacparse wouldn't propagate the adts restriction
upstream to faac.
This patch adds a default getcaps to the sink pad to simply proxy
downstream caps and also adds a 'get_sink_caps' function pointer
to GstBaseParseClass for subclasses that need more refined getcaps.
https://bugzilla.gnome.org/show_bug.cgi?id=661874
Wim Taymans [Tue, 18 Oct 2011 10:39:03 +0000 (12:39 +0200)]
basesrc: also update the stream time
Sebastian Dröge [Tue, 18 Oct 2011 08:58:14 +0000 (10:58 +0200)]
baseparse: Fix handling of queued frames
gst_base_parse_push_frame() already frees the frame, no need to
do it another time again.
René Stadler [Mon, 17 Oct 2011 19:38:56 +0000 (21:38 +0200)]
tests: fix padtemplate leak in selector test
In 0.11, gst_pad_get_pad_template returns a reference.
René Stadler [Mon, 17 Oct 2011 19:37:17 +0000 (21:37 +0200)]
pad: fix buffer/event leak when pad is flushing
Apparently this got lost while refactoring probes.
Wim Taymans [Mon, 17 Oct 2011 15:00:04 +0000 (17:00 +0200)]
baseparse: remove the memory from the tmpbuf
We use a tmpbuf to hold a temporary pointer to the adapter memory. We need to
remove that memory when we no longer need it.
René Stadler [Mon, 17 Oct 2011 11:55:35 +0000 (13:55 +0200)]
caps: fix race condition and memory leak in gst_static_caps_get
This was leaking the PtrArray from caps->priv, as set up by the other call to
gst_caps_init. Also, the thread safety issue presented in the comment above was
not taken care of anymore. We now zero the refcount again when publishing the
structure.
Fixes #661629.
Edward Hervey [Mon, 17 Oct 2011 07:28:43 +0000 (09:28 +0200)]
gstcheck: Make ASSERT_MINI_OBJECT_REFCOUNT more useful
knowing which miniobject failed helps us locate it in debug logs
Edward Hervey [Mon, 17 Oct 2011 07:28:24 +0000 (09:28 +0200)]
gstcheck: Make _check_buffer_data a bit more verbose
Edward Hervey [Mon, 17 Oct 2011 07:27:49 +0000 (09:27 +0200)]
check: Don't leak the feature name
Edward Hervey [Mon, 17 Oct 2011 07:27:26 +0000 (09:27 +0200)]
gstregistry: Don't leak feature name
Tim-Philipp Müller [Sun, 16 Oct 2011 20:12:07 +0000 (21:12 +0100)]
bus: give watch source a name
Give our GSource a meaningful name. Source names can be
used for debugging and profiling, for example with
systemtap or gdb.
Edward Hervey [Fri, 14 Oct 2011 07:35:09 +0000 (09:35 +0200)]
gstbuffer: Add transfer annotations for gst_buffer_join()
Wim Taymans [Sun, 16 Oct 2011 15:42:22 +0000 (17:42 +0200)]
porting: update
Wim Taymans [Sun, 16 Oct 2011 15:03:27 +0000 (17:03 +0200)]
porting: update
Wim Taymans [Sun, 16 Oct 2011 15:00:09 +0000 (17:00 +0200)]
porting: update porting list
Wim Taymans [Sun, 16 Oct 2011 12:45:03 +0000 (14:45 +0200)]
fix more parent_class
Wim Taymans [Sun, 16 Oct 2011 12:20:33 +0000 (14:20 +0200)]
Merge branch 'master' into 0.11
Conflicts:
gst/gstevent.h
Wim Taymans [Sun, 16 Oct 2011 12:17:25 +0000 (14:17 +0200)]
padtemplate: clean up parent_class
Wim Taymans [Fri, 14 Oct 2011 10:57:38 +0000 (12:57 +0200)]
pad: clean up parent_class handling
Edward Hervey [Fri, 14 Oct 2011 07:35:09 +0000 (09:35 +0200)]
gstbuffer: Add transfer annotations for gst_buffer_join()
Edward Hervey [Fri, 14 Oct 2011 07:27:38 +0000 (09:27 +0200)]
gst-inspect: Don't leak plugin feature list
Stefan Sauer [Thu, 13 Oct 2011 15:33:06 +0000 (17:33 +0200)]
bus: fix typo in the docs
Stefan Sauer [Thu, 13 Oct 2011 14:48:02 +0000 (16:48 +0200)]
debugutils: show if an element is state-locked
Stefan Sauer [Thu, 13 Oct 2011 14:42:10 +0000 (16:42 +0200)]
logging: use _OBJECT variants more
René Stadler [Thu, 13 Oct 2011 10:23:59 +0000 (12:23 +0200)]
basesrc: fix caps leak
Sebastian Dröge [Thu, 13 Oct 2011 08:19:34 +0000 (10:19 +0200)]
buffer: Use an inline function instead of a macro for gst_buffer_replace()
This gives us type checks by the compiler and more useful compiler errors.
Sebastian Dröge [Thu, 13 Oct 2011 08:18:51 +0000 (10:18 +0200)]
event: Use an inline function instead of a macro for gst_event_replace()
This gives us type checks by the compiler and more useful compiler errors.
Wim Taymans [Thu, 13 Oct 2011 06:51:42 +0000 (08:51 +0200)]
Merge branch 'master' into 0.11
Conflicts:
gst/gstutils.c
libs/gst/base/gstbasesrc.c
Thiago Santos [Wed, 12 Oct 2011 21:14:00 +0000 (18:14 -0300)]
ghostpad: Do not unref the internal pad twice
g_value_unset should already unref the internal proxypad, no
need to do it again
Wim Taymans [Wed, 12 Oct 2011 15:17:09 +0000 (17:17 +0200)]
basesrc: properly adjust start time
When we do a non-flushing seek and closed the current segment,
make sure that we open the next segment from where we closed.
René Stadler [Wed, 12 Oct 2011 12:37:31 +0000 (14:37 +0200)]
event: add transfer type for gst_event_new_caps argument
These annotations are useful to humans as well...
René Stadler [Wed, 12 Oct 2011 12:34:24 +0000 (14:34 +0200)]
capsfilter: fix caps leak
gst_event_new_caps does not steal a reference to the caps.
René Stadler [Wed, 12 Oct 2011 11:31:48 +0000 (13:31 +0200)]
event: fix gst_event_new_segment transfer type
Edward Hervey [Tue, 11 Oct 2011 11:54:45 +0000 (13:54 +0200)]
tests: Fix more leaks
Edward Hervey [Tue, 11 Oct 2011 11:53:39 +0000 (13:53 +0200)]
capsfilter: Don't leak caps
Edward Hervey [Tue, 11 Oct 2011 11:51:54 +0000 (13:51 +0200)]
basetransform: Fix a caps leak and move a codeblock
The result from the block of code that was moved would only have
been used if 'peercaps' was present.
Edward Hervey [Tue, 11 Oct 2011 11:51:37 +0000 (13:51 +0200)]
gst: More 'transfer' annotations
Tim-Philipp Müller [Mon, 10 Oct 2011 18:41:33 +0000 (19:41 +0100)]
utils: catch invalid instance sizes in gst_type_register_static_full()
Add guards to catch overly large instance sizes.
https://bugzilla.gnome.org/show_bug.cgi?id=660955
Tim-Philipp Müller [Mon, 10 Oct 2011 18:30:34 +0000 (19:30 +0100)]
utils: remove gst_type_register_static_full()
It was only really used by GST_BOILERPLATE, and that is no more.
https://bugzilla.gnome.org/show_bug.cgi?id=660955
Thiago Santos [Mon, 10 Oct 2011 14:47:42 +0000 (11:47 -0300)]
basesrc: avoid trying to alloc enormous buffer
If a class extending basesrc doesn't set blocksize, basesrc
would try to allocate a (guint)-1 sized buffer, which is enormous
and likely would fail.
Avoid it and error out.
Edward Hervey [Mon, 10 Oct 2011 15:17:37 +0000 (17:17 +0200)]
porting: update
Edward Hervey [Mon, 10 Oct 2011 15:04:39 +0000 (17:04 +0200)]
ghostpad: If we don't control a pad/template, return proper caps
If there's a filter, we can return that in _get_caps()
Edward Hervey [Mon, 10 Oct 2011 14:52:43 +0000 (16:52 +0200)]
gstpad: Specify transfer full for gst_pad_get_caps()
It increments the reference count of the returned caps.
Edward Hervey [Mon, 10 Oct 2011 09:02:08 +0000 (11:02 +0200)]
gstpad: Add debug to know what events are transferred between pads
Edward Hervey [Mon, 10 Oct 2011 08:38:12 +0000 (10:38 +0200)]
gstpad: Unset EOS event on FLUSH_STOP
Edward Hervey [Fri, 7 Oct 2011 09:49:19 +0000 (11:49 +0200)]
gstpad: Don't ignore downstream FlowReturn with IDLE probes
If pushgin downstream returned a non-ok value (like GST_FLOW_WRONG_STATE),
we don't want to end up returning a different value (GST_FLOW_OK in this
case) if IDLE probes are present.
Wim Taymans [Mon, 10 Oct 2011 11:23:09 +0000 (13:23 +0200)]
porting: update
Wim Taymans [Mon, 10 Oct 2011 10:54:54 +0000 (12:54 +0200)]
porting: update
Wim Taymans [Mon, 10 Oct 2011 10:38:35 +0000 (12:38 +0200)]
porting: update
Wim Taymans [Mon, 10 Oct 2011 10:27:52 +0000 (12:27 +0200)]
porting: update
Wim Taymans [Mon, 10 Oct 2011 09:49:46 +0000 (11:49 +0200)]
porting: update
Wim Taymans [Mon, 10 Oct 2011 09:36:23 +0000 (11:36 +0200)]
compat: add compat define for UNEXPECTED
Wim Taymans [Mon, 10 Oct 2011 09:33:51 +0000 (11:33 +0200)]
pad: GST_FLOW_UNEXPECTED -> GST_FLOW_EOS
Wim Taymans [Mon, 10 Oct 2011 09:30:21 +0000 (11:30 +0200)]
porting: update
Thiago Santos [Sun, 9 Oct 2011 14:49:45 +0000 (11:49 -0300)]
tests: tee: Remember to initialize variables to NULL
app_thread needs to be initialized to NULL, otherwise tests
will try to use it and crash
Tim-Philipp Müller [Sat, 8 Oct 2011 19:56:59 +0000 (20:56 +0100)]
Update common for check-exports script changes
Tim-Philipp Müller [Sat, 8 Oct 2011 19:46:22 +0000 (20:46 +0100)]
elementfactory: don't export private _gst_elementclass_factory quark
Tim-Philipp Müller [Sat, 8 Oct 2011 19:15:46 +0000 (20:15 +0100)]
info: make _gst_debug_init() private for now
This was a FIXME for 0.11. I guess a case could be made to keep it around
separately for apps or libraries that only want to use GStreamer's debugging
system, but it seems more likely they'd just copy the two source files into
their own tree if the case. Also, things like types wouldn't be initialised
without gst_init(). We can still make it public again if anyone needs it,
but then we should make it a proper function and not hide it behind
underscores.
Tim-Philipp Müller [Sat, 8 Oct 2011 18:54:06 +0000 (19:54 +0100)]
Merge remote-tracking branch 'origin/master' into symbol-exports
Tim-Philipp Müller [Sat, 8 Oct 2011 13:17:25 +0000 (14:17 +0100)]
gstparse: prefix generated parser functions so they don't get exported
Don't export those 35-something random _gst_parse_yy* symbols. These were
never in any header files and also blacklisted from our .def files, in
case anyone wonders.
Tim-Philipp Müller [Sat, 8 Oct 2011 12:37:09 +0000 (13:37 +0100)]
info: rename __gst_debug_* to _gst_debug_* and fix symbol export regexp
Only export GStreamer symbols with one leading underscore, not two
or more leading underscores.
Requires a rebuild of the entire stack, sorry.
Wim Taymans [Sat, 8 Oct 2011 13:16:59 +0000 (15:16 +0200)]
porting: update doc
Wim Taymans [Sat, 8 Oct 2011 12:25:02 +0000 (14:25 +0200)]
Merge branch 'master' into 0.11
Wim Taymans [Sat, 8 Oct 2011 12:23:30 +0000 (14:23 +0200)]
porting: update
Wim Taymans [Sat, 8 Oct 2011 10:08:49 +0000 (12:08 +0200)]
porting: upate porting list
Wim Taymans [Sat, 8 Oct 2011 07:41:54 +0000 (09:41 +0200)]
info: port to 0.11
Wim Taymans [Sat, 8 Oct 2011 07:28:02 +0000 (09:28 +0200)]
Merge branch 'master' into 0.11
Conflicts:
gst/gstpad.c
Thiago Santos [Fri, 7 Oct 2011 12:45:20 +0000 (09:45 -0300)]
pipeline: Use pipeline category for one more log message
Makes debugging easier.
Robert Swain [Fri, 7 Oct 2011 14:36:10 +0000 (16:36 +0200)]
GST_PTR_FORMAT: Add GstBuffer ptr format and use in GST_SCHEDULING
GstBuffer pointers can now be printed using GST_PTR_FORMAT. This is used
in the very useful GST_SCHEDULING debug logs in gstpad.c and allows for
easier and more information tracking of buffer progress through a
pipeline with just debug logging.
Tim-Philipp Müller [Fri, 7 Oct 2011 12:55:18 +0000 (13:55 +0100)]
tests: fix compiler warnings in sinks test
Tim-Philipp Müller [Fri, 7 Oct 2011 12:54:51 +0000 (13:54 +0100)]
base: make GstDataQueue private API for multiqueue
There's no code that uses it other than multiqueue, so make it private
to multiqueue for now. That way we can also do optimisations that
require API/ABI breaks. If anyone ever wants to use it, we can still
make it public again.
Wim Taymans [Thu, 6 Oct 2011 15:27:47 +0000 (17:27 +0200)]
Merge branch 'master' into 0.11
Wim Taymans [Thu, 6 Oct 2011 15:26:02 +0000 (17:26 +0200)]
porting: update list
Mark Nauwelaerts [Thu, 6 Oct 2011 12:34:09 +0000 (14:34 +0200)]
baseparse: send duration message when updating internal duration
Wim Taymans [Thu, 6 Oct 2011 12:04:05 +0000 (14:04 +0200)]
porting: update list
Wim Taymans [Thu, 6 Oct 2011 08:59:09 +0000 (10:59 +0200)]
update porting list
Wim Taymans [Wed, 5 Oct 2011 18:06:51 +0000 (20:06 +0200)]
porting: update list
Wim Taymans [Wed, 5 Oct 2011 11:43:46 +0000 (13:43 +0200)]
porting: update porting status