Wim Taymans
361a7ae44d
add parent to internal links
2011-11-16 17:49:46 +01:00
Wim Taymans
09a8294d36
pad: add parent to the query function
2011-11-16 17:22:56 +01:00
Wim Taymans
54e1174060
GstPadFlags: rename flags GST_PAD_* -> GST_PAD_FLAG_*
2011-11-16 12:36:51 +01:00
Wim Taymans
fe3af1d67b
pad: keep the parent alive when requested
...
Add a new pad flag NEED_PARENT that ensures that the parent of a pad is
reffed and not NULL when the event, query and internal links functions
are called.
When a pad is added to an element automatically make sure the NEED_PARENT flag
is enabled.
2011-11-16 12:08:22 +01:00
Wim Taymans
a641b0ce39
don't require parent element to proxy
2011-11-16 10:31:40 +01:00
Wim Taymans
f746174c10
pad: move query convenience functions together
...
Move the caps convenience functions to the other query functions.
2011-11-15 18:16:24 +01:00
Wim Taymans
e85198bc32
_query_peer_*() -> _peer_query_*()
2011-11-15 17:50:34 +01:00
Wim Taymans
2358938dbd
_accept_caps() -> _query_accept_caps()
2011-11-15 17:40:19 +01:00
Wim Taymans
c55962c2d3
_peer_get_caps() -> peer_query_caps()
2011-11-15 17:11:46 +01:00
Wim Taymans
d805f0f034
pad: _get_caps() -> _query_caps()
2011-11-15 16:46:37 +01:00
Wim Taymans
28b14092d2
utils: fix docs
2011-11-15 16:16:53 +01:00
Wim Taymans
0796586fce
utils: fix the proxy functions
...
fix the proxy functions for query_accept_caps and query_caps to use the pad
forward helper functions which correctly forwards on the internally linked pads.
2011-11-15 16:13:59 +01:00
Wim Taymans
9b98ef4fed
pad: improve some flag macros
2011-11-15 16:13:28 +01:00
Wim Taymans
9f00a24b5e
pad: fix debug line
2011-11-15 16:13:15 +01:00
Wim Taymans
b5c3e254b1
pad: remove getcaps and use caps query
...
Remove the getcaps function on the pad and use the CAPS query for
the same effect.
Add PROXY_CAPS to the pad flags. This instructs the default caps event and query
handlers to pass on the CAPS related queries and events. This simplifies a lot
of elements that passtrough caps negotiation.
Make two utility functions to proxy caps queries and aggregate the result. Needs
to use the pad forward function instead later.
Make the _query_peer_ utility functions use the gst_pad_peer_query() function to
make sure the probes are emited properly.
2011-11-15 11:20:48 +01:00
Wim Taymans
d162d97e1f
query: add caps query
2011-11-14 11:26:17 +01:00
Tim-Philipp Müller
32e7c5d1ef
query: remove GST_QUERY_LAST
2011-11-14 09:57:32 +00:00
Wim Taymans
d1a8695470
fix docs
2011-11-14 10:27:01 +01:00
Stefan Sauer
faf31366ab
controller: remove functions to add/remove controlled properties
...
Make that implizit with attaching/detaching controlsources. This is a lot easier
and has less invalid state (controlled property without control source).
2011-11-14 10:02:55 +01:00
Tim-Philipp Müller
de3e83759e
uri: clean up header files
...
Tabs to spaces.
2011-11-13 23:14:15 +00:00
Tim-Philipp Müller
df20630d78
urihandler: fix return type of get_protocols()
2011-11-13 23:07:58 +00:00
Tim-Philipp Müller
7652df7352
urihandler: fix return type of _get_uri_type()
...
Return a GstURIType and not a plain guint.
2011-11-13 20:56:02 +00:00
Tim-Philipp Müller
682704750c
urihandler: pass GError argument to gst_uri_handler_set_uri()
...
Also let gst_uri_handler_set_uri check already if the protocol
is supported, so that not every uri handler has to do that
itself.
2011-11-13 18:04:55 +00:00
Tim-Philipp Müller
35df64357f
urihandler: make _get_uri() return a copy
...
For thread-safety.
2011-11-13 15:51:44 +00:00
Tim-Philipp Müller
34e3e26467
urihandler: remove "new-uri" signal
...
No one but filesrc used that API. Should probably be replaced by
requiring an "uri" property instead, and then objects can do a
notify on that. Also removed interface structure padding, it's
not needed.
2011-11-13 15:37:40 +00:00
Tim-Philipp Müller
bb18ca7fa4
Merge remote-tracking branch 'origin/master' into 0.11
...
Conflicts:
tools/gst-inspect.c
2011-11-13 13:23:09 +00:00
Tim-Philipp Müller
4d6795dcd1
gst, controller: replace g_list_prepend + reverse with GQueue
2011-11-12 14:57:48 +00:00
Tim-Philipp Müller
ae5e44bfb3
docs: fix typo in buffer docs
2011-11-12 14:04:10 +00:00
René Stadler
4d58535d7c
query: do not return a ref from parse_accept_caps
...
Makes this exactly like gst_event_parse_caps. This is what current code
expects, so it fixes some leaks.
2011-11-12 01:53:13 +01:00
Wim Taymans
4a7c3b929a
.h: fix header files
...
Ensure correct indentation and :retab.
Make sure all structures have padding
Fix up some old ABI additions.
2011-11-11 17:30:03 +01:00
Stefan Sauer
870a5b0e12
docs: fix invalid xml
2011-11-11 17:08:19 +02:00
Wim Taymans
5be6ad56a5
buffer: avoid < -1 sizes
2011-11-11 10:00:35 +01:00
Tim-Philipp Müller
541d79d886
buffer, memory: make size arguments where -1 is allowed signed
2011-11-11 01:47:30 +00:00
Stefan Sauer
a1599f5f7e
controller: merge controller into gstobject
...
This make the controller even more lightweight (no extra object, no extra lock,
less indirections). For object that don't use the controller the only 'overhead'
is a 3 unused fields in the gst_object structure.
2011-11-10 22:47:07 +02:00
Vincent Penquerc'h
86a45f236e
gstbuffer: remove incorrect assertion
...
Offset and sizes have no bearing on each other here.
2011-11-10 14:17:33 +00:00
Edward Hervey
7a285354d2
gst: More introspection annotations
2011-11-10 13:54:03 +01:00
Edward Hervey
abab1b1d01
gstmemory: Register a GBoxed GType
...
Allows using it from g-i
2011-11-10 13:54:02 +01:00
Edward Hervey
deb8e74cad
introspection: Add --warn-all to introspection scanner
...
... and let's get fixing all those docs !
2011-11-10 13:54:02 +01:00
Wim Taymans
13754e87fc
element: add a default set_clock implementation
...
Add a default set_clock implementation and avoid doing work in the vmethod
trampoline. This requires subclasses to chain up.
2011-11-10 12:09:57 +01:00
Wim Taymans
2227d80f93
element: don't do anything in the vmethod trampoline
...
Avoid doing stuff in the vmethod trampoline, just let the default
implementation of the method take care of things.
2011-11-10 12:08:51 +01:00
Wim Taymans
996d3dd5e4
element: fix some docs
2011-11-10 12:08:15 +01:00
Wim Taymans
37318a8cd2
pad: remove GstPadFixateCapsFunction
...
The fixate caps function was not used externally and we have vmethods in the
base classes where it is needed.
Update some docs.
simplify some fixate functions in the base classes. Also pass the untruncated
caps to the vmethod.
2011-11-10 10:58:42 +01:00
Wim Taymans
b133bea426
pad: don't store events on flushing pads
...
check the flushing state of the pad before storing the event.
2011-11-09 17:43:49 +01:00
Wim Taymans
b7966c0c7d
pad: make an ACCEPT_CAPS query
...
Replace the acceptcaps function with a query.
2011-11-09 17:36:00 +01:00
Wim Taymans
756f6eb3f2
pad: refuse events in flushing
...
when we are flushing, don't store the event on the pad but simply return FALSE.
Don't deactivate the srcpad, we need it to be active in order to push the
caps. Downstream can change the scheduling mode of an active pad.
2011-11-09 17:25:30 +01:00
Wim Taymans
6ed869c9f4
element: remove more query_types
2011-11-09 17:23:37 +01:00
Wim Taymans
a22c2716cd
Merge branch 'master' into 0.11
2011-11-09 12:03:28 +01:00
Wim Taymans
6cc7254166
remove query types
...
It was not really useful
2011-11-09 11:47:10 +01:00
Vincent Penquerc'h
d9e5c529ba
gstvalue: consider lists and ranges equal if they hold the same set
...
This fixes caps operations when different elements advertise some
of their caps' properties differently (eg, for audio channels, either
a range from 1 to 2, or a list of 1 and 2).
https://bugzilla.gnome.org/show_bug.cgi?id=663643
2011-11-09 11:24:55 +01:00
Wim Taymans
ac9e5533b5
pad: add more queries
...
Add more query functions to prepare for doing more with queries
2011-11-09 11:22:36 +01:00
Wim Taymans
642a4697fe
pad: install query probes
...
Fire query probes according to updated design doc.
2011-11-08 17:32:11 +01:00
Wim Taymans
4660beaba8
pad: remove lock/unlock_full versions of stream-lock
2011-11-08 15:51:48 +01:00
Wim Taymans
1013c6c79b
pad: add defines for query probes
2011-11-08 15:48:34 +01:00
Wim Taymans
79aeef49b8
buffer: update docs
2011-11-08 13:13:55 +01:00
Wim Taymans
9c0d8ca718
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstelement.h
gst/gstghostpad.c
gst/gstminiobject.c
2011-11-08 12:54:15 +01:00
Wim Taymans
ce09010267
pad: add pull mode probes
...
Allow probes to inspect the offset and size from a probe in pull mode and allow
the probe to modify the buffer.
Update design doc a little.
2011-11-08 12:47:33 +01:00
Wim Taymans
ba3028aeeb
pad: Add GstPadProbeInfo
...
Make a new GstPadProbeInfo structure and pass this in the probe callback. This
allows us to add more things later and also allow the callback to replace or
modify the passed object.
2011-11-08 11:04:19 +01:00
Stefan Sauer
1713aaa4c5
event: log creation of qos events at LOG level instead at INFO
2011-11-08 09:15:30 +01:00
Stefan Sauer
93941a2517
buffer: improve parameter docs
2011-11-08 09:15:30 +01:00
Tim-Philipp Müller
16dcd5e958
docs: fix Since: markers for API added after 0.10.35
2011-11-08 00:32:36 +00:00
Wim Taymans
c9a4037805
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstvalue.c
2011-11-07 17:17:39 +01:00
Wim Taymans
24e596a1fb
pad: rework pad probes
...
Make a separate cookie to detect chancges in the list of probes and keeping
track of what hooks have been invoked yet.
Remove the requirement to have probes on srcpads in push mode and sinkpads in
pull mode.
Add some more debug.
Keep track of what callbacks got executed. If no callback is called and we are a
blocking pad, let the item pass. This allows you to block pads on selected
items only.
Explicitly have an UPSTREAM and DOWNSTREAM PadProbeType. This allows you to only
block the pad on upstream or downstream items.
Add convenience macros to only block on downstream/upstream items.
2011-11-07 17:15:17 +01:00
Vincent Penquerc'h
9121a30f9a
gstcaps: remove unneeded use of gint64
...
https://bugzilla.gnome.org/show_bug.cgi?id=662777
2011-11-07 15:17:35 +00:00
Vincent Penquerc'h
b37d06aed8
gstvalue: quicker version of intersection when we do not need the result
...
https://bugzilla.gnome.org/show_bug.cgi?id=662777
2011-11-07 15:17:19 +00:00
Vincent Penquerc'h
d9901a6288
gststructure: simplify return statement in gst_structure_can_intersect
...
https://bugzilla.gnome.org/show_bug.cgi?id=662777
2011-11-07 15:17:14 +00:00
Vincent Penquerc'h
afc80c10d1
gststructure: early out when we know a value cannot be a subset
...
If two values can be ordered, but are unequal, they are
necessarily distinct, thus one cannot be a subset of the other.
https://bugzilla.gnome.org/show_bug.cgi?id=662777
2011-11-07 15:17:04 +00:00
Vincent Penquerc'h
29c97fe780
gstvalue: quicker test for substraction emptiness
...
When we do not care about the actual resulting set,
but only whether it is empty of not, we can skip a fair bit
of GValue juggling.
Add a function that does so, since we cannot just pass NULL
to the existing API as it may be part of the API contract.
https://bugzilla.gnome.org/show_bug.cgi?id=662777
2011-11-07 15:16:52 +00:00
Vincent Penquerc'h
7090257a83
gststructure: rejig test ordering for speed
...
https://bugzilla.gnome.org/show_bug.cgi?id=662777
2011-11-07 15:16:26 +00:00
Wim Taymans
4fa22944e9
caps: fix compilation
2011-11-07 10:40:23 +01:00
Wim Taymans
b7fac4d093
Merge branch 'master' into 0.11
...
Conflicts:
libs/gst/base/gstbasetransform.c
2011-11-07 10:01:27 +01:00
Tim-Philipp Müller
ee3032a6c9
Revert "controller: fix g_return statement"
...
This reverts commit 593d2b297b
.
gst_controller_set_disabled () returns a void.
2011-11-06 00:07:10 +00:00
Stefan Sauer
618be218e8
controller: the object needs a ref to the controller for the convenience api
...
Add a hack to ensure the object will have a ref to the controller once we
create it. Fixes the audio example (that uses the controller api directly).
2011-11-05 11:02:42 +01:00
Stefan Sauer
593d2b297b
controller: fix g_return statement
2011-11-05 11:02:42 +01:00
Stefan Sauer
95c6fde6ac
controller: logging tweaks
...
Don't log in _new before we have the log category. Use _OBJECT variants.
2011-11-05 11:02:42 +01:00
Tim-Philipp Müller
be70cebc31
gst: fix some compiler warnings
...
gstobject.c: In function 'gst_object_has_active_automation':
gstobject.c:1076:3: error: 'return' with no value, in function returning non-void
gstcontroller.c: In function 'gst_controller_is_active':
gstcontroller.c:509:3: error: 'return' with no value, in function returning non-void
2011-11-05 01:27:54 +00:00
Stefan Sauer
efd4402ee0
controller: add api to check for active controllers (needed for e.g. volume)
2011-11-04 20:50:58 +01:00
Stefan Sauer
0f2d8ab5c2
controller: remove obsolete comments from api transition
2011-11-04 20:32:32 +01:00
Stefan Sauer
9a27b9c056
controller: move to core/gstobject
...
Move the controller to gstobject as a simple delegate. The controller and
controlsource are not classes in core. The controlsources stay separate as a lib
for now. This way we can avoid the qdata lookups.
Also remove controller_init(). There is no more need to link to controller for
elements.
Also sanitize the API. We now have functions to add properties like we had
methods to remove that. That avoids then ref count hacks we had in _new.
2011-11-04 20:11:51 +01:00
Wim Taymans
a38c8b759c
bin: fix the iterator copy
2011-11-04 19:17:06 +01:00
Wim Taymans
c2c9776027
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstbin.c
2011-11-04 19:11:19 +01:00
Sjoerd Simons
57074fc025
caps: Add gst_caps_is_strictly_equal
2011-11-04 17:49:55 +00:00
Wim Taymans
b6fbeb8fed
pad: make probes work on all pads
...
fixes #644907
2011-11-04 18:19:14 +01:00
Peteris Krisjanis
795e836ce3
introspection: add Value annotations for GST_SECOND, GST_MSECOND, GST_USECOND, GST_NSECOND constants
...
gobject-introspection won't parse them properly otherwise.
Still need to force the right type though (either GstClockTime or
guint64), but Type: xyz has no effect for me here, so someone with
a newer g-i needs to test this.
Some other defines are also missing, e.g. GST_CLOCK_TIME_NONE.
2011-11-04 00:19:56 +00:00
Tim-Philipp Müller
d2c713a9b5
bin: use statically allocated GQueue
...
Because we can.
2011-11-03 22:58:50 +00:00
Wim Taymans
2cb971589d
task: don't use lock/unlock_full
2011-11-03 14:14:54 +01:00
Wim Taymans
a1d82bec39
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstghostpad.c
2011-11-03 11:30:52 +01:00
Wim Taymans
e91b1ee412
pad: small cleanup
2011-11-03 11:15:11 +01:00
Nicolas Dufresne
391568efde
ghostpad: Don't cache internal proxy pad target
...
The internal proxy pad target is simply a cache of the internal proxy pad
peer. This patch uses the well implement GstPad peer handling to obtain the
target. This fixes issues with target not being set in both direction when
two ghostpads are linked together (empty bin).
https://bugzilla.gnome.org/show_bug.cgi?id=658517
2011-11-03 09:27:00 +01:00
Wim Taymans
6c627481b3
utils: remove _found_tags_ API
...
remove gst_element_found_tags() and gst_element_found_tags_for_pad(), they are
nothing more than a wrapper around gst_pad_push_event()
2011-11-02 12:06:47 +01:00
Wim Taymans
289d2d62ba
buffer: improve docs
2011-11-02 08:59:44 +01:00
Wim Taymans
7f6495d713
event: make GstSegment argument const
2011-11-02 08:59:44 +01:00
Wim Taymans
d9dc9f9d52
task: api cleanup
...
gst_task_create() -> gst_task_new()
2011-11-02 08:59:44 +01:00
Wim Taymans
e4725d9df2
structure: cleanup API
...
gst_structure_empty_new() -> gst_structure_new_empty()
gst_structure_id_empty_new() -> gst_structure_new_id_empty()
gst_structure_id_new() -> gst_structure_new_id()
2011-11-02 08:59:44 +01:00
Wim Taymans
89fd4ded72
meta: remove timing metadata
...
This is now on buffers by default
2011-11-02 08:59:43 +01:00
Wim Taymans
88e12228cf
bufferlist: clean up API
...
gst_buffer_list_len() -> gst_buffer_list_length()
gst_buffer_list_sized_new() -> gst_buffer_list_new_sized()
2011-11-02 08:59:43 +01:00
Tim-Philipp Müller
4f004eff38
pad: rename GstActivateMode to GstPadActivateMode
...
These might be useful:
sed -i -e 's/GstActivateMode/GstPadActivateMode/g' `git grep GstActivateMode | sed -e 's/:.*//' | sort -u`
sed -i -e 's/GST_ACTIVATE_/GST_PAD_ACTIVATE_/g' `git grep GST_ACTIVATE_ | sed -e 's/:.*//' | sort -u`
2011-11-01 00:25:02 +00:00
Tim-Philipp Müller
bffc9207b5
pad: rename GstProbeType and GstProbeReturn to GstPadProbe{Type,Return}
...
Better now than later in the cycle. These might come in handy:
sed -i -e 's/GstProbeReturn/GstPadProbeReturn/g' `git grep GstProbeReturn | sed -e 's/:.*//' | sort -u`
sed -i -e 's/GST_PROBE_/GST_PAD_PROBE_/g' `git grep GST_PROBE_ | sed -e 's/:.*//' | sort -u`
sed -i -e 's/GstProbeType/GstPadProbeType/g' `git grep GstProbeType | sed -e 's/:.*//' | sort -u`
2011-11-01 00:15:17 +00:00
Tim-Philipp Müller
f19b7d1125
taglist: remove gst_tag_list_get_*long*()
...
No one uses this or should ever need to use it, since
the size is architecture-specific anyway. If normal
integers don't do, one should use 64-bit integers.
2011-10-31 23:32:17 +00:00
Tim-Philipp Müller
221c9423d3
filter: remove gst_filter_run() and deprecated filter func
...
If someone wants to resurrect this, please use a less
generic name space for it.
2011-10-31 14:16:05 +00:00
Tim-Philipp Müller
cfff518cee
Merge remote-tracking branch 'origin/master' into 0.11
...
Conflicts:
gst/gstpluginfeature.c
2011-10-31 14:03:15 +00:00
Tim-Philipp Müller
4e7944b0b9
taglist: rename _new() to _new_empty() and new_full*() to new*()
2011-10-30 22:24:25 +00:00
Tim-Philipp Müller
d9f95e8920
filter: deprecate gst_filter_run()
...
It's not really used outside of core at all, and has
serious namespace issues. If anyone feels the need to
revive this one, please use a less generic name space.
API: deprecate gst_filter_run()
API: deprecate GstFilterFunc
2011-10-30 21:55:05 +00:00
Tim-Philipp Müller
8008837986
registry: don't use soon-to-be-deprecated gst_filter_run()
...
Lines-of-code savings are negligible anyway.
2011-10-30 21:47:39 +00:00
Tim-Philipp Müller
19b4c9c793
pluginfeature: deprecate gst_plugin_feature_type_name_filter()
...
It's only used internally anyway and the helper struct
has namespace issues.
API: deprecated gst_plugin_feature_type_name_filter()
API: deprecated GstTypeNameData
2011-10-30 21:47:26 +00:00
Tim-Philipp Müller
dc7ec44486
taglist: make opaque
...
Hide the fact that it's just a GstStructure from the API. We
may want to change this in future (e.g. to add refcounting).
Also, it caused problems for bindings (though that's mostly
the way we typedefed it to GstStructure).
2011-10-30 10:14:15 +00:00
Tim-Philipp Müller
3a4f580bb2
Merge remote-tracking branch 'origin/master' into 0.11
2011-10-30 10:00:28 +00:00
Tim-Philipp Müller
606c53fc94
taglist: add to_string and new_from_string functions
...
We want to make GstTagList opaque and not have people use
GstStructure API on it.
API: gst_tag_list_to_string()
API: gst_tag_list_new_from_string()
2011-10-30 09:58:16 +00:00
Tim-Philipp Müller
002446820e
Merge remote-tracking branch 'origin/master' into 0.11
2011-10-30 09:31:39 +00:00
Tim-Philipp Müller
911c078c2b
taglist: avoid pointless tag name -> quark lookups
...
We never get a tag name quark from a caller, it's always a
string, from which we'll try to look up our tag info in the
hash table, so change the hash table key from quark to string.
Avoids a bunch of pointless string => quark lookup in the
global quark table. We need to do an extra string => quark
conversion now when we copy a taglist, but in that case we're
in a slow path anyway.
2011-10-30 09:26:52 +00:00
Tim-Philipp Müller
cdade325ae
taglist: add gst_tag_list_is_equal()
...
API: gst_tag_list_is_equal()
2011-10-30 01:44:00 +01:00
Tim-Philipp Müller
bc1a37e64f
structure: identical structures are definitely equal
2011-10-29 23:52:22 +01:00
Tim-Philipp Müller
948980bf11
taglist: fix string for GST_TAG_ARTIST_SORTNAME
...
For historical reasons it was mapped to a musicbrainz prefix,
but it's not really musicbrainz-specific at all.
2011-10-29 20:06:54 +01:00
Tim-Philipp Müller
5842e3fc38
elementfactory: move private functions for registry to private header
2011-10-29 19:59:05 +01:00
Wim Taymans
66e4966aee
buffer: fix docs some more
2011-10-28 16:45:23 +02:00
Wim Taymans
a70934e4ef
segment: remove GST_SEEK_TYPE_CUR
2011-10-28 16:23:49 +02:00
Wim Taymans
8b6431a4de
buffer: improve docs
2011-10-28 16:23:49 +02:00
Wim Taymans
0941cc9fb8
compat: add timestamp compat defines
2011-10-28 12:26:27 +02:00
Wim Taymans
80fc568747
buffer: add pts/dts to buffers
2011-10-28 12:15:44 +02:00
Wim Taymans
d9c8ab67a0
caps: add empty_simple variants
2011-10-27 17:09:04 +02:00
Johan Boulé
3406549cf6
caps: use G_GNUC_NULL_TERMINATED for gst_caps_new_simple() and gst_caps_new_full()
...
If you get warnings, use gst_caps_new_empty().
https://bugzilla.gnome.org/show_bug.cgi?id=343346
2011-10-27 14:56:24 +01:00
Wim Taymans
852851edab
Merge branch 'master' into 0.11
...
Conflicts:
libs/gst/base/gstbasetransform.c
2011-10-27 15:27:19 +02:00
Tim-Philipp Müller
c00c8903ca
structure: use G_GNUC_NULL_TERMINATED for gst_structure_new()
...
If you get a warning, use gst_structure_empty_new().
https://bugzilla.gnome.org/show_bug.cgi?id=343346
2011-10-27 13:25:08 +01:00
Stefan Sauer
b7ae6c46a3
event: clarify docs for step event
2011-10-26 12:24:29 +02:00
Tim-Philipp Müller
dd9f244f03
registry: add support for GST_REGISTRY_REUSE_PLUGIN_SCANNER=no
...
This will make sure we spawn a new plugin scanner helper for each plugin
to be introspected, which helps with making sure we don't load too many
shared objects (libs, plugins) at the same time on systems where there
is a hard limit like on Android.
A better version might re-use the scanner for up to N times, though
it's not clear whether that would actually improve things dramatically.
https://bugzilla.gnome.org/show_bug.cgi?id=662091
2011-10-26 11:20:16 +01:00
Thiago Santos
27ce89812a
caps: No need to require writable caps for _append/_merge second caps
...
The second caps ownership is transfered, no need to require it to
be writable from the caller function. Instead, _append and _merge
make it writable on their own.
Discovered because of an assertion on encoding-profile.c in
_get_input_caps using _merge but not passing writable caps.
2011-10-21 10:23:04 -03:00
Stefan Sauer
b6d34084f2
interfaces: clean up the use of iface and class/klass
2011-10-21 14:20:40 +02:00
Stefan Sauer
ea030c9452
docs: spelling and formatting fixes
2011-10-21 11:21:17 +02:00
Edward Hervey
df6044f7eb
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
2011-10-21 10:52:46 +02:00
Stefan Sauer
ad438461a6
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.
2011-10-20 09:51:11 +02:00
René Stadler
5800757369
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.
2011-10-19 23:40:10 +02:00
Edward Hervey
7460061645
gstobject: Add (skip) annotation to gst_object_ref_sink
2011-10-19 12:12:36 +02:00
Edward Hervey
88095c406e
gstiterator: Add skip annotation for creating GstIterator
...
Not really useful for bindings
2011-10-19 11:59:29 +02:00
Johan Dahlin
2f069b106e
introspection: Skip gst_poll apis
...
https://bugzilla.gnome.org/show_bug.cgi?id=657640
2011-10-19 10:24:17 +02:00
Johan Dahlin
9200776841
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
2011-10-19 10:24:11 +02:00
Johan Dahlin
6cd0287bdb
introspection: Skip gst_init_get_option_group
...
It uses GOptionGroup which is not wrappable
https://bugzilla.gnome.org/show_bug.cgi?id=657640
2011-10-19 10:23:57 +02:00
Johan Dahlin
df7d090ecc
introspection: Add missing annotations
...
https://bugzilla.gnome.org/show_bug.cgi?id=657640
2011-10-19 10:23:53 +02:00
Johan Dahlin
d0e94754f0
introspection: Rename gst_bus_add_watch_full to gst_bus_add_watch
...
https://bugzilla.gnome.org/show_bug.cgi?id=657640
2011-10-19 10:23:45 +02:00
Johan Dahlin
61d5670b27
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
2011-10-19 10:20:31 +02:00
Johan Dahlin
22acd34c42
Add gst_structure_get_type
...
https://bugzilla.gnome.org/show_bug.cgi?id=657640
2011-10-19 10:20:31 +02:00
Thiago Santos
3ab02d8fdc
message: protect against null message sources
...
Message sources can be null, check if it is before trying to
access its name.
2011-10-18 19:29:13 -03:00
Stefan Sauer
2e6b434730
logging: more logging and prefer human readable details over memory locations
2011-10-18 15:24:21 +02:00
Stefan Sauer
a98208770b
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.
2011-10-18 15:24:21 +02:00
René Stadler
5239679c09
pad: fix buffer/event leak when pad is flushing
...
Apparently this got lost while refactoring probes.
2011-10-17 21:40:46 +02:00
René Stadler
221836f452
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 .
2011-10-17 13:59:49 +02:00
Edward Hervey
631bf1f3af
gstregistry: Don't leak feature name
2011-10-17 09:51:15 +02:00
Tim-Philipp Müller
d42923b014
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.
2011-10-16 21:14:03 +01:00
Edward Hervey
d829425fb9
gstbuffer: Add transfer annotations for gst_buffer_join()
2011-10-16 21:13:56 +01:00
Wim Taymans
8e4f006c57
fix more parent_class
2011-10-16 14:45:03 +02:00
Wim Taymans
40bb69827c
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstevent.h
2011-10-16 14:20:33 +02:00
Wim Taymans
2f09c5a9c5
padtemplate: clean up parent_class
2011-10-16 14:19:36 +02:00
Wim Taymans
65a7c66053
pad: clean up parent_class handling
2011-10-16 14:19:36 +02:00
Edward Hervey
ca2ba294d7
gstbuffer: Add transfer annotations for gst_buffer_join()
2011-10-14 09:35:09 +02:00
Stefan Sauer
72d4bbd8db
bus: fix typo in the docs
2011-10-13 17:33:06 +02:00
Stefan Sauer
32b90e667d
debugutils: show if an element is state-locked
2011-10-13 16:49:01 +02:00
Stefan Sauer
735068218e
logging: use _OBJECT variants more
2011-10-13 16:49:01 +02:00
Sebastian Dröge
e8d3870214
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.
2011-10-13 10:19:34 +02:00
Sebastian Dröge
ef32fd0d15
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.
2011-10-13 10:18:51 +02:00
Thiago Santos
a171e684ac
ghostpad: Do not unref the internal pad twice
...
g_value_unset should already unref the internal proxypad, no
need to do it again
2011-10-12 18:14:46 -03:00
René Stadler
eab6465ba8
event: add transfer type for gst_event_new_caps argument
...
These annotations are useful to humans as well...
2011-10-12 14:37:31 +02:00
René Stadler
724d52300e
event: fix gst_event_new_segment transfer type
2011-10-12 13:31:48 +02:00
Edward Hervey
917bfc5df7
gst: More 'transfer' annotations
2011-10-11 13:51:37 +02:00
Tim-Philipp Müller
56e27b0546
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
2011-10-10 19:41:33 +01:00
Tim-Philipp Müller
01c11ebf08
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
2011-10-10 19:30:34 +01:00
Edward Hervey
009bc19528
ghostpad: If we don't control a pad/template, return proper caps
...
If there's a filter, we can return that in _get_caps()
2011-10-10 17:04:39 +02:00
Edward Hervey
86656b44af
gstpad: Specify transfer full for gst_pad_get_caps()
...
It increments the reference count of the returned caps.
2011-10-10 16:55:19 +02:00
Edward Hervey
42fcb1175b
gstpad: Add debug to know what events are transferred between pads
2011-10-10 16:55:19 +02:00
Edward Hervey
2ba6017363
gstpad: Unset EOS event on FLUSH_STOP
2011-10-10 16:54:40 +02:00
Edward Hervey
a930f67697
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.
2011-10-10 16:53:32 +02:00
Wim Taymans
f44b54ebc9
compat: add compat define for UNEXPECTED
2011-10-10 11:36:23 +02:00
Wim Taymans
ea012d3dd7
pad: GST_FLOW_UNEXPECTED -> GST_FLOW_EOS
2011-10-10 11:33:51 +02:00
Tim-Philipp Müller
534e077c18
elementfactory: don't export private _gst_elementclass_factory quark
2011-10-08 20:46:55 +01:00
Tim-Philipp Müller
ac40ab45b3
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.
2011-10-08 20:15:46 +01:00
Tim-Philipp Müller
21ec07eab0
Merge remote-tracking branch 'origin/master' into symbol-exports
2011-10-08 19:54:06 +01:00
Tim-Philipp Müller
01d87250a8
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.
2011-10-08 14:34:04 +01:00
Tim-Philipp Müller
5df82c88c9
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.
2011-10-08 14:27:12 +01:00
Wim Taymans
e10666a9d0
Merge branch 'master' into 0.11
2011-10-08 14:25:02 +02:00
Wim Taymans
c57c1e9b59
info: port to 0.11
2011-10-08 09:41:54 +02:00
Wim Taymans
ee1f861ec1
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstpad.c
2011-10-08 09:28:02 +02:00
Thiago Santos
52613b4d14
pipeline: Use pipeline category for one more log message
...
Makes debugging easier.
2011-10-07 13:36:38 -03:00
Robert Swain
138bb17bf9
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.
2011-10-07 16:38:52 +02:00
Edward Hervey
045fcd8b0a
gstbufferpool: Use glib compat macros for atomic pointers
2011-10-05 11:20:37 +02:00
Wim Taymans
90a4f75650
buffer: improve docs
2011-10-04 18:55:09 +02:00
Wim Taymans
544aa9773a
Merge branch 'master' into 0.11
2011-10-04 17:39:17 +02:00
Edward Hervey
314a24c4ac
gstevent: specify (transfer) for gst_event_new_segment
2011-10-04 15:56:28 +02:00
Wim Taymans
4f8bb4085f
Merge branch 'master' into 0.11
...
Conflicts:
libs/gst/base/gstbaseparse.c
2011-10-03 10:06:17 +02:00
Edward Hervey
a7f8e4a230
gstquery: Make debugging message more informative
...
For all the newcomers out there who still don't know the values of
GstQueryType enum by heart...
... and old-timers who've got better things to do :)
2011-10-03 09:31:59 +02:00
Tim-Philipp Müller
eeed491170
gst.h: include header for atomic queue
2011-09-30 14:52:01 +01:00
Wim Taymans
eda44fbc22
memory: fix memory alignment
...
Fix compilation when POSIX_MEMALIGN is not set.
Debug the configured alignment.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=660300
2011-09-28 18:47:02 +02:00
Wim Taymans
422d1245c1
pad: improve debug
2011-09-28 18:44:12 +02:00
Wim Taymans
8a1f401dfd
docs: fix docs
2011-09-26 20:47:35 +02:00
Wim Taymans
52cb649834
Merge branch 'master' into 0.11
2011-09-26 19:25:22 +02:00
Wim Taymans
dc8b6a555d
segment: improve API docs a little
2011-09-26 19:24:19 +02:00
Raimo Järvi
6637d983d3
gst: Fix compiler warnings on 64 bit mingw-w64
...
Fixes bug #660083 .
2011-09-26 12:17:30 +02:00
Edward Hervey
10e7159cf8
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstcaps.c
gst/gstpad.c
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesink.h
libs/gst/base/gstbasetransform.c
2011-09-23 13:09:25 +02:00
Stas Sergeev
b090a376d4
pad: Set caps on pad before checking if the pad is linked
...
This allows the setcaps handler and notify::caps to link
the pad downstream and doesn't require hacks to always
provide a peer to the pad, like in decodebin2.
2011-09-19 14:08:16 +02:00
Fabrizio (Misto) Milo
7be3899653
caps: use g_value_take_string() and gst_value_get_caps() instead of accessing internal fields
2011-09-19 09:50:11 +02:00
Tim-Philipp Müller
b15ae28ad2
pad: add more debug logging for other chain function code path as well
2011-09-16 13:38:41 +01:00
Tim-Philipp Müller
a08402bdfd
pad: fix up printf format in debug message
...
Which I messed up.
2011-09-16 13:13:30 +01:00
Vincent Penquerc'h
91c217c714
pad: make some debug traces more useful
...
https://bugzilla.gnome.org/show_bug.cgi?id=659139
2011-09-16 12:07:21 +01:00
Tim-Philipp Müller
98ee2979d1
caps: move log messages for caps creation/freeing into TRACE category
...
Reduce SPAM for GST_CAPS:5.
2011-09-10 18:24:49 +01:00
Sebastian Dröge
22ba786807
pad: Only do the subset check in gst_pad_accept_caps() if the pad claims to accept the caps
2011-09-09 12:56:20 +02:00
Sebastian Dröge
7476186217
Revert "Revert "pad: Check for subsets, not non-empty intersections to check if caps are compatible""
...
This reverts commit 2bfada5581
.
Conflicts:
gst/gstpad.c
For 0.11 we want to enforce that only subsets of the pad
caps are allowed. This breaks backward compatibility for
some elements, which is why we only print a warning in
0.10.
2011-09-08 14:32:26 +02:00
Sebastian Dröge
7a82ed41f8
Revert "pad: Use gst_pad_accept_caps() instead of manually checking when configuring a sinkpad"
...
This reverts commit d3cad28da9
.
It causes performance problems because acceptcaps() propagates downstream.
2011-09-08 14:29:00 +02:00
Sebastian Dröge
43538e2e75
Merge branch 'master' into 0.11
...
Conflicts:
docs/design/draft-buffer2.txt
docs/design/part-TODO.txt
docs/design/part-block.txt
docs/design/part-bufferlist.txt
docs/design/part-caps.txt
docs/design/part-element-transform.txt
docs/design/part-events.txt
docs/design/part-negotiation.txt
gst/gstcaps.c
gst/gstevent.h
gst/gstghostpad.c
gst/gstinterface.c
gst/gstpad.c
gst/gstpad.h
gst/gstutils.c
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesrc.c
libs/gst/base/gstbasetransform.c
libs/gst/base/gsttypefindhelper.c
plugins/elements/gstcapsfilter.c
plugins/elements/gsttee.c
tests/check/generic/sinks.c
tools/gst-launch.1.in
2011-09-08 14:28:23 +02:00
Sebastian Dröge
d3cad28da9
pad: Use gst_pad_accept_caps() instead of manually checking when configuring a sinkpad
2011-09-08 13:42:53 +02:00
Sebastian Dröge
79b5e89015
pad: Print a g_warning() if pad accept caps that are not a subset of its caps
...
In 0.11 only subsets are supported again as documented instead of also
allowing non-empty intersections.
2011-09-08 13:42:53 +02:00
Sebastian Dröge
2bfada5581
Revert "pad: Check for subsets, not non-empty intersections to check if caps are compatible"
...
This reverts commit 0c5d502073
.
See bug #658541 .
2011-09-08 13:42:52 +02:00
Piotr Fusik
14f5518f3d
docs, gst: typo fixes
...
https://bugzilla.gnome.org/show_bug.cgi?id=658449
2011-09-07 18:03:17 +01:00
Stefan Sauer
83eb2d42fa
docs: escape % in docblob
2011-09-07 14:08:35 +02:00
Stas Sergeev
fcadf09779
ghostpad: Use gst_pad_set_caps() instead of manually changing caps
...
gst_pad_set_caps() does essentially the same but additionally calls
the pad's setcaps function.
Fixes bug #658076 .
2011-09-07 13:38:47 +02:00
Sebastian Dröge
0c5d502073
pad: Check for subsets, not non-empty intersections to check if caps are compatible
...
Pads should only accept caps that are a subset of the pad caps, e.g.
they should accept only caps that have a non-empty intersection and
at least all fields of the pad caps.
Without this a pad that wants for example
"video/x-h264,stream-format=byte-stream"
will be happy to accept
"video/x-h264".
2011-09-06 12:35:41 +02:00
Wim Taymans
a952de69dd
miniobject: change to GST_DEFINE_MINI_OBJECT_TYPE
...
Append _TYPE to the macro for consistency with other similar macros.
2011-08-29 17:06:18 +02:00
Wim Taymans
f3b0d3cdbe
init: add _get_type() functions
...
Remove gst_mini_object_register() and add a GST_DEFINE_MINI_OBJECT macro to
define a _get_type() function for the boxed miniobject.
Remove a bunch of custom _get_type() functions and replace them with the
miniobject macro.
Rename some _init method to _priv_*_initialize() like the rest of them.
Inspired by patch from Johan Dahlin and see bug #657603
2011-08-29 15:34:30 +02:00
Wim Taymans
4145598972
gst: add some _priv prefixes to private methods
2011-08-29 13:27:26 +02:00
Wim Taymans
1e59b651ba
mini-object: use ref/unref directly in boxed copy/free
...
GLib will not call our copy/free with a NULL object
2011-08-29 12:38:54 +02:00
Wim Taymans
5cf8e68944
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstmessage.c
gst/gstquery.c
gst/gstregistrychunks.c
gst/gstsegment.c
libs/gst/base/gstbasetransform.c
libs/gst/base/gstbasetransform.h
libs/gst/base/gsttypefindhelper.c
plugins/elements/gsttypefindelement.c
2011-08-26 14:37:54 +02:00
Wim Taymans
cc1686352d
buffer: improve flags
...
Rename DROP to DECODE_ONLY.
Add DROPPABLE flag to mark buffers that can be dropped to save bandwidth without
destroying the stream.
2011-08-26 14:17:23 +02:00
Josep Torra
185ab7f325
docs: add since 0.10.36 on the new _NONE enum values
2011-08-26 14:11:15 +02:00
Josep Torra
306e317ae9
typefind: add GST_TYPE_FIND_NONE and use it
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:15 +02:00
Josep Torra
1db007e5bb
parse: use GST_PARSE_FLAG_NONE instead of 0
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:14 +02:00
Josep Torra
b26c5b99f2
value: explicitly cast to the enum type
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:14 +02:00
Josep Torra
b57683d258
utils: minor changes related to enum types
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:14 +02:00
Josep Torra
c0749e7762
trace: add GST_ALLOC_TRACE_NONE for consistency and use it
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:14 +02:00
Josep Torra
97442ad1a3
task: explicitly cast to the enum type
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:14 +02:00
Josep Torra
95b96b57a2
tagsetter: use GST_TAG_MERGE_UNDEFINED instead of FALSE
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:14 +02:00
Josep Torra
c0b0b977d7
segment: use GST_SEEK_FLAG_NONE instead of 0
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:14 +02:00
Josep Torra
9f8fe424c7
registrychunks: explicitly cast to the enum types
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:14 +02:00
Josep Torra
ec157ebed9
query: minor changes related to enum types
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:13 +02:00
Josep Torra
480d415419
padtemplate: explicitly cast to the enum types
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:13 +02:00
Josep Torra
746813344d
pad: explicitly cast to the enum type
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:13 +02:00
Josep Torra
c27ce79ba1
message: explicitly cast to the right enum types
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:13 +02:00
Josep Torra
2a6ba0b29d
info: explicitly cast to the enum type
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:13 +02:00
Josep Torra
e5d00246cf
index: explicitly cast to the enum type
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:13 +02:00
Josep Torra
11e287529d
format: use GST_FORMAT_UNDEFINED and few casts to GstFormat
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
2011-08-26 14:11:13 +02:00
Wim Taymans
4b3ffbc14d
buffer: rename _CLIP to _DROP flag
...
We can also use a flag to indicate that a frame should be decoded but not
displayed regardless of the the segment boundaries so we use the more generic
_DROP.
2011-08-26 13:40:44 +02:00
Wim Taymans
3d87984db3
uri: some doc fixes
2011-08-26 10:57:37 +02:00
Wim Taymans
0a3aede5a8
buffer: add clip flag
2011-08-25 18:04:28 +02:00
Wim Taymans
fa8f9b50ea
buffer: rework flags a little
...
Reorder buffer flags and add some new ones.
Remove the media specific flags, we can now easily do this with the FLAG_LAST
flag because we don't extend from GstBuffer anymore.
2011-08-25 16:21:18 +02:00
Wim Taymans
b5ef693e88
buffer: always copy all buffer flags when asked
...
Don't try to be smart and copy only a subset of buffer flag
2011-08-25 16:20:21 +02:00
Wim Taymans
7ee57702a8
buffer: pluralize the buffer flags
2011-08-25 14:09:37 +02:00
Wim Taymans
6f295dc239
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstobject.c
2011-08-24 10:43:09 +02:00
Stefan Kost
febde0c19f
gstobject: also remove the cast as this is causing the trouble
2011-08-23 11:55:17 +02:00
Stefan Kost
df099959fd
gstobject: use the atomic macros to deal with the glib change in the impl.
2011-08-23 11:43:44 +02:00
Wim Taymans
655f1b9c57
object: make _replace like the miniobject version
2011-08-22 12:49:04 +02:00
Wim Taymans
8170c34c94
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstbuffer.h
gst/gstcaps.c
gst/gstcaps.h
gst/gstevent.c
2011-08-22 12:33:35 +02:00
Wim Taymans
405a5d2a92
value: remove our FOURCC GType
...
Remove our custom fourcc GValue.
2011-08-22 12:19:19 +02:00
David Schleef
ec6e452f63
object: make gst_object_replace() atomic
2011-08-21 14:07:08 -07:00
Stefan Kost
cce32ba0a2
docs: more clarification for element docs
...
Don't suggest deprecated method in the desction docs and try to be more helpful
in other places by suggesting related functions.
2011-08-20 14:07:55 +02:00
Stefan Kost
a3611c139a
docs: small clarification in the gst_element_get_request_pad docs
...
Make it more obvious that one should pass the template name.
2011-08-20 09:57:14 +02:00
Wim Taymans
b1573e9865
structure: add method to fixate one field
2011-08-17 17:56:40 +02:00
Wim Taymans
e4db8d0f55
docs: improve some docs
2011-08-17 09:25:04 +02:00
Wim Taymans
aefa1c67f8
buffer: return processed number of bytes
...
Make _fill, _extract and _memset return the actual number of bytes that were
handled in case the buffer size is less than the specified size.
2011-08-16 18:29:29 +02:00
Tim-Philipp Müller
eb08ed6ed0
docs: fix typo in element factory documentation
2011-08-16 17:19:29 +01:00
Wim Taymans
8698a8c94e
buffer: rename PREROLL -> LIVE flag
...
Rename the GST_BUFFER_FLAG_PREROLL to GST_BUFFER_FLAG_LIVE and give the new flag
a meaning. The old PREROLL flag never had a clear meaning.
2011-08-16 17:32:20 +02:00
Tim-Philipp Müller
4985d2a954
caps: fix compiler warning reported by ICC
...
The MAX macro expands to code that checks if an unsigned integer is < 0.
Fixes warning #186 : pointless comparison of unsigned integer reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
2011-08-15 21:15:29 +01:00
Josep Torra
c56881a026
buffer: explicitly cast to the enum type
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
2011-08-15 21:15:22 +01:00
Josep Torra
2271b6dc9a
gststate: explicitly cast to the enum type
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
2011-08-15 21:15:12 +01:00
Josep Torra
89239d85cc
event: explicitly cast to the right enum types
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
2011-08-15 21:14:55 +01:00
Josep Torra
7b434c44bf
gsterror: explicitly cast to the right GstGError code enum types
...
Fixes warning #188 : enumerated type mixed with another type reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
2011-08-15 21:14:22 +01:00
Josep Torra
b30b78c505
debugutils: use GST_STATE_VOID_PENDING for GstState instead of 0
...
Fixes a warning reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
2011-08-15 21:13:47 +01:00
Josep Torra
d99d270a69
caps: define GST_CAPS_FLAGS_NONE for consistency with other enumerations
...
Use them to fix warnings when building with ICC.
API: GST_CAPS_FLAGS_NONE
https://bugzilla.gnome.org/show_bug.cgi?id=656265
2011-08-15 21:13:29 +01:00
Josep Torra
abda75bcf5
gst: use GstDebugLevel enum type to fix a warning building with ICC
...
https://bugzilla.gnome.org/show_bug.cgi?id=656265
2011-08-15 21:13:03 +01:00
Wim Taymans
d22192474a
pad: make fixate caps behave like other functions
...
Install a default fixate caps function on pads like all the other pad functions.
2011-08-15 16:45:33 +02:00
Wim Taymans
e01b5c0f46
Merge branch 'master' into 0.11
2011-08-15 14:43:14 +02:00
Wim Taymans
49fc4249e5
caps: add fixate function
...
Add a fixate function and use it in gstpad.c
2011-08-15 14:40:38 +02:00
Wim Taymans
bd20d2d199
structure: add function to fixate
...
Add a function to fixate a structure and use it for the default fixate function
in gstpad.c.
2011-08-15 14:32:17 +02:00
Wim Taymans
d12738b4fa
pad: fix default acceptcaps
...
Make the acceptcaps function behave like all the other functions with a default
implementation. Don't try to chain up to the default implementation when it was
set to NULL explicitly but return FALSE instead.
Fix some docs
2011-08-15 14:19:09 +02:00
Wim Taymans
cbccf7d5bf
pad: fix some macros
...
Remove a rather usless macro to check if a pad mode is active and
add GST_PAD_IS_ACTIVE().
2011-08-15 13:24:11 +02:00
Wim Taymans
1c16ff94fc
pad: remove gst_pad_get_negotiated_caps()
...
Remove gst_pad_get_negotiated_caps(), it does not realy do what it says,
gst_pad_get_current_caps() returns the currently negotiated caps on the pad
correctly.
2011-08-15 12:16:30 +02:00
Peteris Krisjanis
59bf122584
iterator: Fix gst_iterator_next() element annotation
2011-08-12 11:48:49 +02:00
Stefan Kost
d8c0bd45a7
debugutils: removed non-sense comment
2011-08-11 10:09:41 +02:00
Edward Hervey
bdc1710be5
Merge remote-tracking branch 'origin/master' into 0.11
...
Conflicts:
gst/gstdebugutils.c
gst/gstelementdetails.h
gst/gstregistrychunks.c
tools/gst-run.c
2011-08-10 17:07:54 +02:00
Stefan Kost
20618b4c28
registry: move utf-8 validation to registry saving time
...
Instead of checking for valid utf-8 element-details every time we create
elements (from plugin-init or registry), do it before we save the registry.
Fixes #656193 .
2011-08-10 13:45:49 +02:00
Josep Torra
178bdccb76
Fix and clarify debug statements
...
Fixes build on MacOSX
Signed-off-by: Edward Hervey <edward.hervey@collabora.co.uk>
2011-08-10 11:01:58 +02:00
Edward Hervey
2d4ddc3a08
gstbuffer: Clarify doc
2011-08-08 11:51:26 +02:00
Shaun Hoopes
3029a222e8
debugutils: improve dot file flow layout
...
Iterate source- and sink-pads separately to ensure that the graph reflects the
upstream/downstream order. Fixes #643269
2011-08-06 18:26:39 +02:00
Wim Taymans
99d4880f31
pad: add method to mark reconfigure
2011-08-04 17:12:21 +02:00
Wim Taymans
aa97daaf0e
fix default alignment
...
A 0 alignment is the default.
2011-08-04 11:00:57 +02:00
Wim Taymans
7c9be852bc
bufferpool: add gst_buffer_pool_is_active()
2011-08-04 10:54:29 +02:00
Wim Taymans
9324824853
bufferpool: don't add the same option twice
...
Make sure that we only add an option to the array once.
2011-08-01 18:12:12 +02:00
Wim Taymans
60cb9cddd4
bufferpool: add method to check for an option
...
Add a method to check if an option is supported on the bufferpool.
2011-07-30 14:04:43 +02:00
Wim Taymans
733e94ada8
bufferpool: add options API to bufferpool
...
Make it possible to query the supported options of a bufferpool and enable
options. This is a bit more generic than the API to enable metadata. The purpose
is to make it possible to add new custom config options to the configuration of
the bufferpool when supported.
2011-07-29 17:10:09 +02:00
Tim-Philipp Müller
388548222d
element: don't use G_CONST_RETURN
...
It's been deprecated in newer GLib versions
2011-07-28 12:11:36 +01:00
Tim-Philipp Müller
ef8ca3549e
gst: fix awkward dest_format inout parameter in query utility functions
...
The idea was originally that if one passed &dest_fmt with
dest_fmt=GST_FORMAT_DEFAULT, then the code answering the query
could change dest_fmt to the actual default format used. However,
in more than half a decade of GStreamer 0.10 no piece of code in
GStreamer has ever used that feature, nor are there that many
users of this API that actually check whether the format returned
is the original format passed before using the values returned.
Also, it's just annoying-to-use API in its own right.
For all these reasons, make it so that the destination format is
passed directly and can't be changed by the element queried.
2011-07-28 11:23:15 +01:00
Wim Taymans
cf18fa9ce5
Merge branch 'master' into 0.11
2011-07-27 12:50:39 +02:00
Tim-Philipp Müller
317fba25a6
elementfactory: fix g-i annotation for _create() and _make() to allow NULL object names
2011-07-27 10:09:11 +01:00
Wim Taymans
5e330fa456
pad: improve the getcaps function
...
Refactor calling the GETCAPS function and checks.
Move the filter code in one place.
When using fixed pad caps, get the currently configured caps and then fallback
to the GETCAPS function. We used to simply ignore the GETCAPS function, which
resulted in transform elements returning the template caps instead of doing the
caps transform.
2011-07-26 18:48:20 +02:00
Wim Taymans
cea4b4c7d5
pad: only update caps when changed
...
Only call the event function with the caps event when the caps changed.
2011-07-26 16:10:42 +02:00
Wim Taymans
61481ac9e5
pad: add allocation query just because
2011-07-26 12:20:04 +02:00
Wim Taymans
d54f3f1385
poll: improve debugging
2011-07-25 15:21:21 +02:00
Wim Taymans
ee235a6b07
miniobject: avoid race in bufferpool release
...
Avoid playing with the refcount to decide when a buffer has been recycled by the
dispose function. The problem is that we then temporarily can have a buffer with
a refcount > 1 being acquired from the pool, which is not writable. Instead use
a simple boolean return value from the dispose function to inform the called
that the object was recycled or not.
2011-07-25 12:53:10 +02:00
Wim Taymans
43f61f5c40
bufferpool: start with raised control socket
...
In the inactive state, the control socket should be in the raised state, we will
release it when we start.
2011-07-25 12:16:13 +01:00
Wim Taymans
dd045fd0ed
bufferpool: add reset_buffer vmethod
...
Add a vmethod to reset a buffer to its original state. Add a default
implementation that resets the flags, timestamps and offsets.
Add some more docs.
2011-07-21 18:50:25 +02:00
Wim Taymans
92aa4fede9
Merge branch 'master' into 0.11
...
Conflicts:
libs/gst/base/gstbaseparse.c
libs/gst/base/gstbasesink.c
2011-07-21 16:49:13 +02:00
Raluca Elena Podiuc
43f5624334
docs: removed double negation in event/message seq num description
...
https://bugzilla.gnome.org/show_bug.cgi?id=654751
2011-07-16 23:53:03 +01:00
Wim Taymans
1dddb1f704
bufferpool: call release_buffer after alloc
...
After we allocated a new buffer, call the release_buffer vmethod to put the new
buffer in the pool instead of assuming that the pool uses the default
release_method implementation.
2011-07-15 13:27:13 +02:00
Wim Taymans
2f429009a3
bufferpool: add macro to check for flushing
2011-07-15 11:52:22 +02:00
Wim Taymans
cc16dd8498
buffer: improve debug message
2011-07-15 11:51:54 +02:00
Wim Taymans
1a3f48f427
buffer: fix resize function some more
...
Don't remove memory blocks from the buffer when we clip and resize, instead set
the memory offset and size to 0. This allows us to make the buffer larger again
later.
2011-07-12 14:07:57 +02:00
Wim Taymans
a19baf77e7
buffer: improve size handling
...
Also handle the case where multiple empty memory blocks are in the buffer.
Add unit test for this.
2011-07-12 13:40:35 +02:00
Wim Taymans
a5ee20db3f
buffer: fix _resize some more
...
Add more debug.
Alow resize to 0 bytes.
Do clipping correctly.
Add more unit tests. Also add a failing test: when we resize to 0 and then
try to resize back to the original size it fails because the memory was
removed.
2011-07-12 12:00:58 +02:00
Wim Taymans
8461249f22
buffer: fix negative offsets some more
...
Allow for negative offsets when doing memory copy and share.
Add fast path in the _get_sizes() function.
Fix resize for negative offset and expanding the buffer.
Add some unit tests.
2011-07-11 18:00:52 +02:00
Wim Taymans
6b3572feab
buffer: fix _resize better
2011-07-11 16:42:56 +02:00
Wim Taymans
abf6293639
buffer: add api to get the current memory offset
...
Also return the offset in a GstMemory block with the get_sizes() method. This
allows us to figure out how much prefix there is unused.
Change the resize function so that a negative offset can be given. This would
make it possible to resize the buffer so that the prefix becomes available.
Add gst_buffer_get_sizes() to return the offset and maxsize as well as the size.
Also change the buffer resize method so that we can specify a negative offset
to remove prefix bytes.
2011-07-11 16:24:16 +02:00
Mark Nauwelaerts
21e0d113cf
buffer: add some memory wrapped buffer allocation helpers
2011-07-11 14:43:19 +02:00
Wim Taymans
8cf3fa5c6d
miniobject: cleanup headers
2011-07-11 12:11:35 +02:00
Mark Nauwelaerts
b3bf6cdfd8
pad: avoid inadvertently dropping an event
...
... particularly a non-sticky serialized event that happens to pass
when an event update is pending.
2011-07-11 11:59:18 +02:00
Tim-Philipp Müller
75c81c2120
buffer: make idx argument to gst_buffer_take_memory() signed
...
Since -1 is acceptable, it should be signed.
2011-07-08 13:53:35 +01:00
Wim Taymans
b171259612
Merge branch 'master' into 0.11
...
Conflicts:
libs/gst/base/gstbasesrc.c
2011-07-07 11:13:19 +02:00
Wim Taymans
806cf03fbc
buffer: add memset function
2011-07-07 11:02:09 +02:00
Tim-Philipp Müller
a1f6e02149
buffer: fix guards for gst_buffer_take_memory()
...
Since idx = -1 makes it default to idx=len, len is also
a valid input idx.
2011-07-06 12:09:28 +01:00
Wim Taymans
3bb21e0203
gst: add class ref/unref
2011-07-05 16:38:06 +02:00
Tim-Philipp Müller
0a6ec83336
gst: make compiler warn about unstable API if GST_USE_UNSTABLE_API is not defined
...
And define it in our own build.
2011-07-05 09:46:43 +01:00
Tim-Philipp Müller
3dbcb73b11
Remove GstImplementsInterface
...
It was a bit too clever, and didn't really work as an API,
confusing people to no end. Better implement specific methods
whether an interface is usable/available/ready on the interface
itself, or even add GError arguments, rather than try to have
per-instance interfaces.
2011-06-26 22:59:26 +01:00
Emmanuel Pacaud
156583a69c
task: Check for PR_SET_NAME before using
...
Fixes : #653172 .
Signed-off-by: David Schleef <ds@schleef.org>
2011-06-25 13:52:28 -07:00
Wim Taymans
0aa1465bbc
query: add method to check for metadata
...
Add a method to check if a certain metadata is supported in the ALLOCATION
query.
2011-06-23 18:03:22 +02:00
Koop Mast
4fe5dd2b9d
segment: cast to right type
...
See #653137
2011-06-22 16:58:53 +02:00
Wim Taymans
b322a401c7
uri: remove some _full variants
2011-06-22 16:38:04 +02:00
Wim Taymans
6da2a33b7a
tags: Remove crazy tag messages
...
Don't mix messages and pads and tags.
Make the sink post tag messages when a tag event is received.
Since tags are sticky on pads now, they can be retrieved from there
when needed.
2011-06-22 16:16:56 +02:00
Wim Taymans
314a2b961a
caps: Hide implementation details
...
Make the Array of structures private. This should allow us to implement
the array more efficiently or with some preallocated structures when
we want to later.
Add a new method to clean up a static structure so that we can remove some code
that pokes into the private bits of the caps.
2011-06-22 12:28:14 +02:00
Wim Taymans
3884badea6
memory: rename GstMemoryAllocator -> GstAllocator
...
simplify the name of the allocator object.
2011-06-22 11:42:46 +02:00
Wim Taymans
36c111a844
bufferpool: return empty metadata array
...
Return a string array with NULL instead of NULL from the default get_metas
function.
2011-06-21 12:32:46 +02:00
Wim Taymans
872e7d52df
pad: use event function directly
...
We will never go in this code path for CAPS events so directly call the event
function.
2011-06-21 12:31:57 +02:00
Wim Taymans
de3b6e733f
pad: notify caps after we store the new caps
...
notify caps after we store the new caps so that the new caps are actually
visible for the app.
2011-06-21 10:29:51 +02:00
Wim Taymans
9177367984
ghostpad: improve debug
...
Log a debug line when there is no target pad and when this makes the default
implementation fail.
Take the internal pads directly when we can.
2011-06-20 16:53:03 +02:00
Wim Taymans
a22274d7a1
bufferpool: add function to set metadata api
...
Add a function to retrieve an array of supported metadata apis from the the
bufferpool.
Add functions to configure and query the configured metadata apis in a
bufferpool configuration.
2011-06-20 13:26:06 +02:00
Thiago Santos
00c891a823
gstbuffer: Minor fix to docs
...
Adds missing parameter to docs of gst_buffer_copy_region
2011-06-19 13:17:06 -03:00
Edward Hervey
a885082a16
gstpad: Remove unused variable do_event_actions
...
do_event_actions was always used as TRUE
2011-06-18 17:35:41 +02:00
Tim-Philipp Müller
9eee73dcc6
Revert "utils: remove some macros now in glib"
...
This reverts commit de29ae7b92
.
Re-adds GFLOAT_TO_LE, GFLOAT_TO_BE, GDOUBLE_TO_LE, and GDOUBLE_TO_BE.
Turns out these aren't in GLib yet afer all (since we didn't
actually open a bug to get them added..)
2011-06-16 10:55:15 +01:00
Wim Taymans
54fd50bfe1
buffer: add index to _take_memory()
...
Add an index to gst_buffer_take_memory() so that we can also insert memory at a
certain offset. This is mostly interesting to prepend a header memory block to
the buffer.
2011-06-13 16:31:53 +02:00
Wim Taymans
a59defb90f
pad: don't forward scheduling query
...
The scheduling query should not be forwarded, because elements need to implement
special code to handle different scheduling methods.
2011-06-13 16:30:22 +02:00
Wim Taymans
d837268a77
buffer: add more debug
2011-06-13 12:04:28 +02:00
Wim Taymans
9b9b758688
bufferpool: small indentation fix
2011-06-13 11:51:08 +02:00
Wim Taymans
468dbbbaaf
buffer: pass the allocator as const
2011-06-13 11:50:42 +02:00
Wim Taymans
a14623f925
query: add some more checks
...
Make sure that the alignment is valid.
When we have a 0 size (variable buffer size), we can't have a bufferpool.
2011-06-11 20:45:42 +02:00
Wim Taymans
bb2d7241fa
query: set all default values
...
Fill all query values with good defaults.
2011-06-11 19:54:47 +02:00
Wim Taymans
6ca5d44704
bufferpool: remove postfix parameter
...
Remove the postfix parameter, it's not used and can be done differently.
2011-06-11 18:52:42 +02:00
Wim Taymans
2b071ea395
bufferpool: use same alignment values as GstMemory
...
Use the same alignment values for the bufferpool as we use for the GstMemory
API.
2011-06-10 17:50:27 +02:00
Wim Taymans
2d6a59aa83
pad: add _check_reconfigure() method
...
Add a method to check and clear the RECONFIGURE flag on a pad.
2011-06-10 17:32:20 +02:00
Wim Taymans
eeb07b3f3d
buffer: add support for buffer in memory
...
Fix the code to support allocating the buffer and memory in one memory block.
Add an extra variable to store the memory of the buffer.
This code is disabled still because of complications.
2011-06-10 16:47:29 +02:00
Wim Taymans
3e5c5fb034
memory: expose default alignment
...
Export the gst_memory_alignment variable so that others can know the default
configured alignment of the system.
2011-06-10 16:46:12 +02:00
Wim Taymans
7c475cc60f
memory: fix is_span
...
Subtract the offset of the parent from is_span.
2011-06-10 16:19:46 +02:00
Wim Taymans
17ff81fc7d
memory: respect configured alignment
...
Move the alignment from GstBuffer to GstMemory.
make sure memory is at least aligned to the configured values.
2011-06-10 13:59:31 +02:00
Wim Taymans
b27ee30a35
buffer: make new _buffer_allocate method
...
Make a new method to allocate a buffer + memory that takes the allocator and the
alignment as parameters. Provide a macro for the old method but prefer to use
the new method to encourage plugins to negotiate the allocator properly.
2011-06-10 13:49:23 +02:00
Wim Taymans
2d28891528
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstelementfactory.c
gst/gstelementfactory.h
gst/gstpad.h
gst/gstpluginfeature.c
gst/gstpluginfeature.h
2011-06-10 12:09:49 +02:00
Wim Taymans
bbfec45ecc
event: add reset_time boolean to flush_stop event
...
Add a boolean to the flush_stop event to make it possible to implement flushes
that don't reset_time.
Make basesink post async_done with the reset_time property from the flush stop
event.
Fix some unit tests
2011-06-10 11:55:08 +02:00
Javier Jardón
5d25e4a204
Use "const" instead G_CONST_RETURN
...
G_CONST_RETURN will be deprecated soon.
https://bugzilla.gnome.org/show_bug.cgi?id=652211
2011-06-09 17:54:27 +01:00
Wim Taymans
ab0ab2fbca
pad: use new event methods to replace events
...
Using the new event methods, we can atomically transfer the event from the
pending list to the active list.
2011-06-09 13:37:28 +02:00
Wim Taymans
1b21f2af8f
event: make macros for new miniobject methods
2011-06-09 13:36:52 +02:00
Wim Taymans
1b98eb34d7
miniobject: add new methods to manage miniobject pointers
...
Add a new method to steal the miniobject stored at a location.
Add a new method to store a miniobject in a location and taking ownership
of the miniobject.
2011-06-09 13:35:08 +02:00