Stefan Kost
6c2024f881
docs: xrefs more api around GstStateChange and GstStateChangeReturn.
2011-05-28 10:24:37 +03:00
Stefan Kost
dd6a5d81c4
docs: xref the async messages to GstStateChange
2011-05-28 09:52:55 +03:00
Sebastian Dröge
57df188757
caps: Add gst_caps_is_subset_structure()
...
API: gst_caps_is_subset_structure()
This allows to check if a structure is a subset of given
caps without allocating a new caps instance for it.
2011-05-27 13:55:31 +02:00
Sebastian Dröge
da58834884
structure: Add gst_structure_is_subset()
...
API: gst_structure_is_subset()
2011-05-27 13:47:11 +02:00
Sebastian Dröge
d98e9acb0f
caps: Optimize gst_caps_is_subset()
...
..and as a result gst_caps_is_equal() and others.
This now only checks if for every subset structure there is
a superset structure in the superset caps. Previously we were
subtracting one from another, creating completely new caps
and then even simplified them.
The new implemention now is about 1.27 times faster and doesn't
break the -base unit tests are anything anymore.
2011-05-27 13:38:51 +02:00
Sebastian Dröge
0cf2dfd0ba
caps: Fix subset check in gst_caps_merge()
...
Caps A are a subset of caps B even if caps B doesn't
have all fields of caps A.
Also add a unit test for this.
2011-05-27 13:37:06 +02:00
Sebastian Dröge
d706ca0859
Revert "caps: Optimize gst_caps_is_subset()"
...
This reverts commit 32248a9b85
.
This breaks some tests in -base and the failures should
be fixed first.
2011-05-27 12:56:43 +02:00
Sebastian Dröge
32248a9b85
caps: Optimize gst_caps_is_subset()
...
..and as a result gst_caps_is_equal() and others.
This now only checks if for every subset structure there is
a superset structure in the superset caps. Previously we were
subtracting one from another, creating completely new caps
and then even simplified them.
The new implemention now is about 1.27 times faster.
2011-05-27 12:45:59 +02:00
Tim-Philipp Müller
8a3721a1ca
gst: we can now use GLib 2.24 API unconditionally
2011-05-25 16:02:10 +01:00
Руслан Ижбулатов
d56b3ec5aa
systemclock: Placate gcc by defining EWOULDBLOCK to something
2011-05-25 12:04:14 +02:00
Руслан Ижбулатов
54a9d8038d
poll: Fix WAKE_EVENT() to behave posixly on Windows
2011-05-25 12:04:14 +02:00
Stefan Kost
e0c92982e9
registrybinary: small cleanups
...
Remove unneeded braces from string define. Small doc improvement.
2011-05-24 20:30:11 +03:00
Stefan Kost
75ba14c79b
preset: use guint for the version number parts
...
Use unsigned integers for extra safety (like we do in plugin version parsing).
2011-05-24 20:30:11 +03:00
Sebastian Dröge
de1c3bdd5a
Revert "debugutils: Fix for GstIterator API changes"
...
This reverts commit e1cc3176d6
.
This is not the 0.11 branch...
2011-05-24 13:28:00 +02:00
Sebastian Dröge
e1cc3176d6
debugutils: Fix for GstIterator API changes
2011-05-24 13:27:38 +02:00
Kipp Cannon
696a9a694f
clock: improve the GST_TIME_FORMAT/ARGS docs
2011-05-24 00:26:40 +03:00
Stefan Kost
1718abcbbb
docs: hide this from the docs
2011-05-23 23:40:20 +03:00
Stefan Kost
01d8d7d718
deprecation-guards: fixup for commit 9ff4ec3104
...
Remove the deprecation guards for GST_PLUGIN_DEFINE_STATIC again (even though it
is deprecated) as we use it in the tests. Remove "_" for intlinkfunc.
2011-05-20 15:50:30 +03:00
Stefan Kost
aa2bfc9b7f
preset: include cleanup
...
Only have include in the installed header we need to use it. Move the includes
needed by the implementation to the c file.
2011-05-20 00:39:10 +03:00
Stefan Kost
79b22cb2ed
docs: use the same name for the argument in prototype and docs
2011-05-18 15:03:46 +03:00
Stefan Kost
bd302bb63d
pluginfeature: avoid duplicating feature->name
...
The feature name is not supposed to change over time anyway. In order to enforce
this parentize features to the registry and make the feature->name pointing to
GstObject:name. In 0.11 we could consider of removing the feature->name variable
(FIXME comment added).
Fixes : #459466
2011-05-18 09:55:57 +03:00
Stefan Kost
9ff4ec3104
docs: add deprecation guards
...
Move GstPadIntLinkFunction to private header to avoid a dozen #ifdefs. Use a
gpointer in public header instead.
2011-05-18 09:55:57 +03:00
Tim-Philipp Müller
da21881f28
miniobject: delay private data initialisation until actually needed
...
We only use the private instance data for weak references for now,
so can delay initialisation until actually needed (microoptimisation)
2011-05-17 11:38:30 +01:00
Sebastian Dröge
b4dea3a1d3
structure: Make both parameters to gst_structure_is_equal() const
2011-05-17 09:35:54 +02:00
Sebastian Dröge
53ef31718d
structure: Update Since markers to the correct version
2011-05-17 09:33:47 +02:00
Sebastian Dröge
a08a17dfbd
structure: Add gst_structure_intersect()
...
API: gst_structure_intersect()
2011-05-17 09:33:04 +02:00
Edward Hervey
64725facb5
gststructure: Add gst_structure_can_intersect API
...
Allows checking if two structures can intersect without having to
go through GstCaps
API: gst_structure_can_intersect
https://bugzilla.gnome.org/show_bug.cgi?id=629300
2011-05-17 09:28:06 +02:00
Edward Hervey
ae46eb3a38
gstructure: New API: gst_structure_is_equal
...
Allows checking equality of GstStructure without having to create
intermediary GstCaps.
API: gst_structure_is_equal
https://bugzilla.gnome.org/show_bug.cgi?id=629300
2011-05-17 09:28:00 +02:00
Tim-Philipp Müller
76ccd2a1e9
docs: fix up some Since markers and update for new multiqueue args
2011-05-14 14:05:52 +01:00
Sebastian Dröge
7316a88387
bin: Don't interprete pipelines without sink elements as always being in EOS state
...
Some tests (e.g. elements/capsfilter) have pipelines with dangling
sinkpads and without a sink element. These pipelines can never post
an EOS message (because this is only valid by a sink) and as such
should never get an EOS message posted by the bin.
2011-05-14 11:39:36 +02:00
Sebastian Dröge
cdffc1d5d5
systemclock: Only retry writing to the socket for EAGAIN, EWOULDBLOCK and EINTR
...
Fixes infinite loop in some cases, bug #650002 .
2011-05-14 11:39:35 +02:00
Sebastian Dröge
116972d6eb
miniobject: Minor cleanup of last commit
2011-05-14 11:39:35 +02:00
José Alburquerque
cf671d7b0a
miniobject: Add weak referencing functionality
...
API: gst_mini_object_weak_ref()
API: gst_mini_object_weak_unref()
Add weak referencing functionality to GstMiniObject, which
allows to get notifications when an mini object is destroyed
but doesn't increase the real refcount. This is mostly
useful for bindings.
Fixes bug #609473 .
2011-05-14 11:39:35 +02:00
Sebastian Dröge
4a836cae9f
bin: Only post EOS messages after reaching the PLAYING state
...
Fixes bug #647756 .
2011-05-14 11:39:35 +02:00
Sebastian Dröge
3872b816d2
element: Add GstElement::state_changed vfunc
...
API: GstElement::state_changed
This is always called when the state of an element has changed and
before the corresponding state-changed message is posted on the bus.
2011-05-14 11:39:35 +02:00
Sebastian Dröge
3c760a3ee5
ghostpad: Add docs for all the new, public functions
2011-05-14 11:39:35 +02:00
Sebastian Dröge
800b738715
ghostpad: Add guards against invalid parameters to the new, public functions
2011-05-14 11:39:35 +02:00
Sebastian Dröge
6807e536b0
ghostpad: Rename ghostpad/proxypad default functions
...
API: gst_ghost_pad_activate_pull_default
API: gst_ghost_pad_activate_push_default
API: gst_ghost_pad_internal_activate_pull_default
API: gst_ghost_pad_internal_activate_push_default
API: gst_ghost_pad_link_default
API: gst_ghost_pad_setcaps_default
API: gst_ghost_pad_unlink_default
API: gst_proxy_pad_acceptcaps_default
API: gst_proxy_pad_bufferalloc_default
API: gst_proxy_pad_chain_default
API: gst_proxy_pad_chain_list_default
API: gst_proxy_pad_checkgetrange_default
API: gst_proxy_pad_event_default
API: gst_proxy_pad_fixatecaps_default
API: gst_proxy_pad_getcaps_default
API: gst_proxy_pad_getrange_default
API: gst_proxy_pad_iterate_internal_links_default
API: gst_proxy_pad_query_default
API: gst_proxy_pad_query_type_default
API: gst_proxy_pad_setcaps_default
2011-05-14 11:39:34 +02:00
Sebastian Dröge
4c1e594ae5
ghostpad: Make all the internal caps functions public
...
This is useful if ghostpad/proxypads should be used but
additional code should be executed, e.g. for tracking
segments in the event function.
2011-05-14 11:39:34 +02:00
Sebastian Dröge
b36ce63f38
ghostpad: Only implement the iterate_internal_links function on proxypads
...
ghostpads inherit it from their parent class. Also make it threadsafe.
2011-05-14 11:39:34 +02:00
Sebastian Dröge
a216426bb6
ghostpad: API: Expose gst_proxy_pad_get_internal()
...
This allows to get the internal pad of ghostpads and
proxypads without using gst_pad_iterate_internal_links()
and is much more convenient.
The internal pad of a ghostpad is the pad of the opposite direction
that is used to link to the ghostpad target.
2011-05-14 11:39:34 +02:00
Sebastian Dröge
6e57ce32e5
caps: Merge structures when intersecting instead of appending them
...
This prevents adding duplicates over and over again to the resulting
caps if they already describe the new intersection result.
While this changes intersection from O(n*m) to O(n^2*m), it results in
smaller caps, which in the end will decrease further processing times.
For example in an audioconvert ! audioconvert ! audioconvert pipeline,
when forwarding the downstream caps preference in basetransform
(see e26da72de25a91c3eaad9f7c8b2f53ba888a0394) this results in
16 instead of 191 caps structures.
2011-05-14 11:39:34 +02:00
Miguel Angel Cabrera Moya
f450817d7f
parse: don't unescape inside quotes
...
Escaped characters inside quoted strings are supposed to be unescaped by
deserialization functions, not by parsing functions.
https://bugzilla.gnome.org/show_bug.cgi?id=648025
2011-05-14 11:39:34 +02:00
Sebastian Dröge
f07b637d86
pad: Remove unnecessary FIXME
...
Resetting the result is not necessary when resyncing because
pads that previously got the event will be skipped and we
need to consider the results of the previous pushes.
2011-05-14 11:39:33 +02:00
Sebastian Dröge
2f947f3993
element: If activating one pad failed error out early instead of trying to activate the next pads
...
If one pad fails to activate the complete activation process will fail
anyway and trying to activate the other pads only wastes time.
2011-05-14 11:39:33 +02:00
Sebastian Dröge
f3f1f7d69a
bin: If activating one pad failed error out early instead of trying to activate the next pads
...
If one pad fails to activate the complete activation process will fail
anyway and trying to activate the other pads only wastes time.
2011-05-14 11:39:33 +02:00
Stefan Kost
218bc52c7f
info: avoid redefinition of symbols when debugging is off
...
The refactoring of gst_debug_add_log_function() now causes build failure when
debug-logging is turned off. Just move it to the conditional part of the header.
2011-05-06 12:02:52 +03:00
Thiago Santos
a750aac2dd
miniobject: Fix dup_mini_object function to handle NULL gvalues
...
g_value_dup_object handles gvalues that contain NULL pointers,
gst_value_dup_mini_object should do the same.
https://bugzilla.gnome.org/show_bug.cgi?id=649195
2011-05-03 08:15:51 -03:00
Stefan Kost
58fc672362
docs: fix copy'n'paste doc header mistake
2011-05-03 13:03:21 +03:00
Stefan Kost
c45ff2b12a
docs: add two trivial doc blobs
2011-05-03 13:03:21 +03:00