Wim Taymans
44b4312d96
fix some circular includes
...
typedef some structs before including other files to avoid circular dependencies
in the header files.
2011-06-07 13:25:26 +02:00
Wim Taymans
016e750a41
utils: remove proxy_setcaps
...
Remove proxy_setcaps, elements should use the caps event and forward caps
themselves.
2011-06-07 10:52:02 +02:00
Wim Taymans
b5351dadcd
pad: Improve pad event forward code
...
Return TRUE when the pad has no parent or when there are no internally linked
pads.
2011-06-07 10:49:34 +02:00
Wim Taymans
9058499eeb
pad: Rename and rework the dispatcher function
...
Rename gst_pad_dispatcher() to gst_pad_forward() and make it more useful by
iterating the internal links of a pad and handling resync properly.
Add a method gst_pad_event_forward() that unconditionally forwards an event to
all internally linked pads.
Update some pad code to use the new forward function.
2011-06-07 10:02:06 +02:00
Wim Taymans
a767bf2bf9
caps: use the caps event
...
Use the caps event instead of gst_pad_set_caps() and the setcaps function
2011-06-07 09:43:20 +02:00
Edward Hervey
ba8c8bb2c8
gst: Add enum/flags (de)registration in gst_(de)init
2011-06-06 11:21:23 +02:00
Tim-Philipp Müller
4b920eb5d2
docs: update for API changes
...
Also remove GST_PAD_CHECKGETRANGEFUNC macro
2011-06-05 18:57:56 +01:00
Tim-Philipp Müller
5a8273e527
Merge branch 'master' into 0.11
2011-06-05 15:48:51 +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
Tim-Philipp Müller
bc69efa7cc
info: remove GST_XML debug category as well
2011-06-04 15:23:56 +01:00
Tim-Philipp Müller
a4092cd5c4
Remove everything libxml2- and loadsave-related
2011-06-04 15:22:06 +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
Edward Hervey
20d1ee87cb
gstpad: Small doc fixup
2011-06-03 18:10:24 +02:00
Wim Taymans
07aca4a698
pad: clean up probe flags
2011-06-03 17:24:45 +02:00
Wim Taymans
f851685f92
pad: check flushing in pullrange too
2011-06-03 16:46:26 +02:00
Wim Taymans
8dda6b462d
pad: cleanups
...
Use defines instead of hardcoded values for masks.
2011-06-03 13:56:04 +02:00
Wim Taymans
7b43f02ed3
structure: fix some more 0.11 fixmes
...
don't allow spaces in structure names and fix unit tests.
2011-06-03 13:25:54 +02:00
Wim Taymans
89121c18e5
bufferpool: make the default behaviour to wait
...
The most common case is to not specify any flags when doing the allocation. Make
the allocation from a pool with a maximum amount of buffers block by default for
this reason.
2011-06-03 12:40:56 +02:00
Wim Taymans
5426527b70
ghostpad: remove setcaps functions
...
Remove the setcaps functions, it is now handled with the caps event.
2011-06-02 19:23:47 +02:00
Wim Taymans
539cceab88
buffer: pass the right alignment
2011-06-02 18:28:54 +02:00
Wim Taymans
b05ee3ddb2
memmory: small cleanup
2011-06-02 18:28:17 +02:00
Wim Taymans
c8fc05743d
memory: fix alignment calculations
...
Fix the alignment calculation.
Improve documentation.
2011-06-02 18:13:33 +02:00
Wim Taymans
d2d23074af
pool: debug the config
2011-06-02 18:13:10 +02:00
Wim Taymans
de29ae7b92
utils: remove some macros now in glib
...
We depend on the right glib now
2011-06-02 15:38:43 +02:00
Wim Taymans
04323a0bb9
structure: fix a FIXME
2011-06-02 15:38:29 +02:00
Wim Taymans
589499c07e
utils: use g_printerr() as stated in the FIXME
2011-06-02 15:38:04 +02:00
Wim Taymans
0de2f64e12
element: small cleanups
2011-06-02 15:37:41 +02:00
Wim Taymans
9555a7f8d0
element: inline the recursice state lock
2011-06-02 14:09:46 +02:00
Wim Taymans
b5d35162ae
pad: inline the recursive stream lock
2011-06-02 13:46:26 +02:00
Wim Taymans
fde7d867bd
pad: remove unused fields and methods and signals
2011-06-02 13:35:52 +02:00
Wim Taymans
d863976e59
pad: use new gst_value_fixate instead
...
Use the new gst_value_fixate() function instead of our own version.
2011-06-02 13:23:53 +02:00
Wim Taymans
e2b6e88d5f
value: add function to fixate a value
...
Add a function to fixate a GValue. This is the same function as is in GstPad.
2011-06-02 13:21:55 +02:00
Wim Taymans
9553ea1c07
caps: remove some custom refcounting methods
...
Remove some custom made refcounting methods and use the miniobject ones instead.
2011-06-02 13:18:39 +02:00
Wim Taymans
2b9c34cd70
pad: optimize linking
...
Optimize linking by only releasing the pad locks when there are link functions
installed on the pads.
Add some G_LIKELY here and there.
Move error paths out of the main code flow.
2011-06-02 12:40:05 +02:00
Wim Taymans
50a8e0431c
pad: remove deprecated have-data signal
2011-06-02 12:39:34 +02:00
Wim Taymans
541258f0e9
pad: add idle probe for pull method too
2011-06-02 11:21:09 +02:00
Wim Taymans
e2eae110a9
pad: more cleanups
...
Use miniobject unref when we can
Reuse existing data type identifier instead of an extra boolean.
2011-06-02 11:01:31 +02:00
Wim Taymans
272b3263aa
Merge branch 'master' into 0.11
...
Conflicts:
plugins/elements/gstoutputselector.c
2011-06-01 19:47:10 +02:00
Wim Taymans
3f51563319
pad: further improve probes and pad blocking
...
Keep track of installed number of probes to shortcut emission.
Allow NULL callbacks, this is useful for blocking probes.
Improve probe selection based on the mask, an empty mask for the data or the
scheduling flags equals that all probes match.
Add some more debug info.
Don't check the flushing flag in the probe callback handler, this needs to be
done before calling the handler.
Fix blocking probes.
Fix unit tests
2011-06-01 19:39:20 +02:00
Wim Taymans
8abc457a3b
pad: implement pad block with probes
2011-06-01 19:39:16 +02:00
Wim Taymans
a5bbf7f369
utils: remove _full variants of probes
...
Remove the _full variants and add the destroy notify to the regular methods.
2011-06-01 19:39:11 +02:00
Edward Hervey
c72321b260
gstsegment: Remove dead assignment
...
base is unconditionally written a couple of lines below
2011-05-31 18:30:50 +02:00
Edward Hervey
ceb86a586e
gst: Remove obvious dead assignments
2011-05-31 18:30:30 +02:00
Wim Taymans
fce85f75ff
pad: Rework pad blocking, another attempt
...
Make the PadBlock callback take a GstBlockType parameter to handle the different
kind of stages in the pad block. This provides for more backwards compatibility
in the pad block API.
Separate blocking and unblocking into different methods, only blocking can do a
callback, unblock is always immediately. Also removed synchronous blocking, it
can always be implemented with a callback.
2011-05-30 18:29:06 +02:00
Wim Taymans
565f492af2
Revert "pad: rework pad blocking, first part"
...
This reverts commit 415da89f3c
.
Conflicts:
gst/gstpad.c
2011-05-30 13:40:04 +02:00
Wim Taymans
9f2424123f
pad: improve debugging
2011-05-30 12:27:52 +02: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
58302cedfa
Merge branch 'master' into 0.11
2011-05-30 07:41:13 +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