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
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
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
Tim-Philipp Müller
eb08ed6ed0
docs: fix typo in element factory documentation
2011-08-16 17:19:29 +01: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
Stefan Kost
d8c0bd45a7
debugutils: removed non-sense comment
2011-08-11 10:09:41 +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
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
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
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
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
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
Tim-Philipp Müller
6d374e54b9
parse: add prototypes for unused functions to avoid compiler warning
...
The warning is never fatal, because we don't use -Werror for the
parser helper library build, but the warnings are annoying anyway.
2011-06-05 15:27:19 +01:00
David Schleef
f3eac7de22
Work around changes in g_atomic API
...
See #651514 for details. It's apparently impossible to write code
that avoids both type punning warnings with old g_atomic headers and
assertions in the new. Thus, macros and a version check.
2011-06-04 00:36:26 -07:00
Sebastian Dröge
0a80b57d74
value: Consider "1" and "{1}" as equal in gst_value_compare()
...
Previously this was only done in the is_subset() check but
having it only there brings us into definition-hell where
"1" and "{1}" are subset of each other but not equal.
2011-05-30 11:33:57 +02:00
Sebastian Dröge
f304196148
caps: Fix subset check for equivalent lists and scalar values
...
For example "{ 1 }" and "1" are not strictly equal but
both are a subset of each other. Also add a unit test
for this.
2011-05-30 07:38:40 +02:00
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
Stefan Kost
319eef8aa9
docs: improve the syntax for the capsintersectmode docs
2011-05-03 13:03:20 +03:00
Stefan Kost
41754faaaf
docs: fixup broken xref
2011-05-03 13:03:20 +03:00
Stefan Kost
a482babf55
docs: fix gtk-doc syntax
2011-05-03 13:03:20 +03:00
Stefan Kost
81c32bc56e
docs: we don't need to document private members in opaque structs
2011-05-03 13:03:20 +03:00
Tim-Philipp Müller
1ebff8a510
pluginfeature: include plugin.h in header where we use a GstPlugin pointer
...
Should fix issue with gstreamermm build where <gst/gstindex.h> is included
directly instead of gst/gst.h.
2011-04-29 23:44:55 +01:00
Tim-Philipp Müller
06ca275916
Revert lockfree GstBus for the release
...
Drop in old GstBus code for the release to play it safe, since
regressions that are apparently hard to track down and reproduce
have been reported (on windows/OSX mostly) against the lockfree
version, and more time is needed to fix them.
This reverts commit 03391a8970
.
This reverts commit 43cdbc17e6
.
This reverts commit 80eb160e0f
.
This reverts commit c41b0ade28
.
This reverts commit 874d60e589
.
This reverts commit 79370d4b17
.
This reverts commit 2cb3e52351
.
This reverts commit bd1c400114
.
This reverts commit 4bf8f1524f
.
This reverts commit 14d7db1b52
.
https://bugzilla.gnome.org/show_bug.cgi?id=647493
2011-04-26 16:14:00 +01:00
David Schleef
36fc7179cb
minor inline documentation fix
2011-04-24 18:31:12 -07:00
Tim-Philipp Müller
f9625dbe55
registry: when removing a cached-but-no-longer-existing plugin, only remove features that belong to it
...
When a plugin file no longer exists, e.g. because it's been removed or
renamed, don't remove all features in the registry based on the *name*
of the plugin they belong to, but only remove those who actually belong
to that particular plugin (object/pointer).
This fixes issues of plugin features disappearing when a plugin .so file
is renamed.
https://bugzilla.gnome.org/show_bug.cgi?id=604094
2011-04-24 11:27:56 +01:00
Tim-Philipp Müller
4926ce31c7
pluginfeature: store pointer to plugin in addition to the plugin name
...
So we can reliably remove plugin features for a specific plugin later.
https://bugzilla.gnome.org/show_bug.cgi?id=604094
2011-04-24 11:27:19 +01:00
Tim-Philipp Müller
d3d5b98c2f
registry: use TRACE log level to log files that don't look like plugins
...
Cuts down the noise in uninstalled setups.
2011-04-24 11:05:58 +01:00
Mark Nauwelaerts
03391a8970
bus: also allow popping a message without timeout if no poll available
...
... which happens in particular flushing a bus, possibly as part
of a state change, e.g. when having a pipeline in a pipeline
and then changing state back to NULL. The interior pipeline
will/might then flush the bus, which is a child bus from the
parent which does not have a poll anymore these days.
https://bugzilla.gnome.org/show_bug.cgi?id=648297
2011-04-21 12:29:34 +01:00
Havard Graff
547d451772
pad: unlock before freeing the cache to avoid deadlock
...
https://bugzilla.gnome.org/show_bug.cgi?id=648199
2011-04-19 15:15:34 +01:00
Tim-Philipp Müller
60bbb9c24f
docs: add note/warning to gst_index_get_writer_id() docs about the OBJECT_LOCK
...
https://bugzilla.gnome.org/show_bug.cgi?id=646811
2011-04-19 13:23:19 +01:00
Tim-Philipp Müller
f4b178af3b
query: const-ify formats arguments to gst_query_set_formatsv()
2011-04-19 11:48:05 +01:00
Tim-Philipp Müller
d22ad73e74
gst: gobject-introspection scanner doesn't need to scan or update plugin info
2011-04-16 13:49:45 +01:00
Sebastian Dröge
bc68243123
gst: make sure gobject-introspection scanner calls gst_init()
...
https://bugzilla.gnome.org/show_bug.cgi?id=647922
2011-04-16 14:34:41 +02:00
Tim-Philipp Müller
f660536eb3
pluginloader: only run gst-plugin-scanner with /usr/bin/arch wrapper on OS X >= 10.5
...
Based on patch by: Daniel Macks <dmacks@netspace.org>
Earlier versions of OSX don't support proper multiarch and
trying to use /usr/bin/arch -foo with those versions would
just break things.
https://bugzilla.gnome.org/show_bug.cgi?id=615357
2011-04-15 21:02:35 +01:00
Sebastian Dröge
379d5dfb07
bufferlist: Add boxed type for GstBufferListIterator for gobject-introspection
2011-04-14 16:14:02 +02:00
Sebastian Dröge
2d7c81f1d7
parse: Add boxed type for GstParseContext for gobject-introspection
2011-04-14 16:14:01 +02:00
Sebastian Dröge
bf6c3ea6df
gst: Add some more gobject-introspection annotations
2011-04-14 16:14:01 +02:00
Sebastian Dröge
151b7264e8
utils: Fix caps leaks in gst_element_factory_can_accept_{any,all}_caps_in_direction()
2011-04-14 09:00:44 +02:00