Wim Taymans
0e9241cfc6
buffer: make function to find memory in a buffer
...
Make a function to find the memory blocks for a region in a buffer.
2012-04-01 12:02:40 +02:00
Stefan Sauer
7f628113e4
childproxy: fix more missing GST_OBJECT -> G_OBJECT use
2012-03-31 21:26:56 +02:00
Wim Taymans
d89719a4b3
adapter: use buffer_wrap
2012-03-31 18:34:23 +02:00
Wim Taymans
113b9dc535
buffer: add peek_memory method
...
Add a peerk_memory method that simply fetches the memory at an offset without
refcounting or merging.
2012-03-31 17:10:35 +02:00
Wim Taymans
3db0ce476f
grammar.y: fix childproxy code
...
It takes GObject and not GstObject now
2012-03-31 12:00:56 +02:00
Stefan Sauer
e7b9b68361
childproxy: include the child name in the signal
2012-03-30 22:46:02 +02:00
Stefan Sauer
d93c5c5fd0
parser: update for childproxy api changes
2012-03-30 22:45:04 +02:00
Stefan Sauer
e96c312847
childproxy: fix signal parameter types
2012-03-30 22:36:35 +02:00
Stefan Sauer
f35267bb92
childproxy: use GObject instead of GstObject
...
This makes it prossible to be used more widely. Fix implementations for the API
change.
2012-03-30 22:24:26 +02:00
Stefan Sauer
ef48cff3d0
childproxy: make get_child_by_name virtual
...
Allows implementations to use custom name->object mappings.
2012-03-30 22:13:51 +02:00
Stefan Sauer
bd625b8152
childproxy: fix indentation
2012-03-30 22:01:26 +02:00
Wim Taymans
38b96e6c8c
buffer: improve the buffer memory methods
...
gst_buffer_take_memory -> gst_buffer_insert_memory because insert is what the
method does.
Make all methods deal with ranges so that we can replace, merge, remove and map
a certain subset of the memory in a buffer. With the new methods we can make
some code nicer and reuse more code. Being able to deal with a subset of the
buffer memory allows us to optimize more cases later (most notably RTP headers
and payload that could be in different memory objects).
Make some more convenient macros that call the more generic range methods.
2012-03-30 18:15:24 +02:00
Mark Nauwelaerts
bcb98f409b
typefindelement: plug caps leaks
2012-03-30 16:53:09 +02:00
Mark Nauwelaerts
a0649dd357
typefindhelper: also unmap collected mapped buffers
2012-03-30 16:53:05 +02:00
Mark Nauwelaerts
096d36e5c5
basetransform: plug caps leak
2012-03-30 16:53:00 +02:00
Sebastian Dröge
eadebb172d
baseparse: Rename ::event() to ::sink_event() for consistency
2012-03-30 12:03:40 +02:00
Edward Hervey
00feec6068
basesink: lower GST_BASE_SRC_FLAG_LAST
...
It wouldn't leave that much room for subclass users
2012-03-30 11:49:16 +02:00
Edward Hervey
5e554fde91
win32: Update defs file
2012-03-30 08:55:33 +02:00
Sebastian Dröge
4bffd22394
bytewriter: Actually commit the .c file changes too
2012-03-29 18:03:35 +02:00
Sebastian Dröge
d4dcb87c69
bytewriter: Add unchecked/inline variant of gst_byte_writer_put_buffer()
2012-03-29 18:01:11 +02:00
Edward Hervey
16bf133566
gstquery: Fix annotation
2012-03-29 17:53:47 +02:00
Edward Hervey
2bdd71a710
queue: Flush the internal queue when we see GST_FLOW_FLUSHING
...
Ensures that we don't end up with stale contents (like GstQuery) in
the internal GQueue after any blocking upstream thread returns.
2012-03-29 17:46:35 +02:00
Edward Hervey
c36748177f
queue: Don't unref GstQuery travelling through the queue
...
Unlike events and buffers, the reference is not given to us
2012-03-29 17:46:35 +02:00
Mark Nauwelaerts
617a8b3811
query: parsing allocation query need not provide reffed caps
...
... in line with other query parsing function.
2012-03-29 17:08:57 +02:00
Fabrizio (Misto) Milo
31c450a5d5
caps: spelling fixes
2012-03-29 15:46:15 +02:00
Edward Hervey
2d95de113e
gstelement: lower GST_ELEMENT_FLAG_LAST
...
It wouldn't leave that much room for subclass users
2012-03-29 15:28:44 +02:00
Edward Hervey
31ca9f9216
gstbuffer: Fix unitialized variable
...
gcc 4.5 complains otherwise :(
2012-03-29 15:18:33 +02:00
Sebastian Dröge
4b6c3c7fea
Merge remote-tracking branch 'origin/0.10'
...
Conflicts:
plugins/elements/gstmultiqueue.c
2012-03-29 14:54:53 +02:00
Sebastian Dröge
9441e711df
multiqueue: Wake up all not-linked streams when a stream switches from linked to not-linked
...
We reset all the waiting streams, let them push another buffer to
see if they're now active again. This allows faster switching
between streams and prevents deadlocks if downstream does any
waiting too.
Also improve locking a bit, srcresult must be protected by the
multiqueue lock too because it's used/set from random threads.
2012-03-29 14:49:53 +02:00
Sebastian Dröge
17e691421f
multiqueue: Recompute high-time too when flushing, not only high-id
2012-03-29 14:47:57 +02:00
Sebastian Dröge
d03e3d7772
inputselector: Only wait until the active pad's running time is reached if the active pad already saw data
...
Otherwise we might block forever because upstream (e.g. multiqueue) is waiting
for the previously active stream to return forever (which is waiting here
in inputselector) before pushing something on the newly selected stream.
2012-03-29 14:47:57 +02:00
Wim Taymans
ce67b0e539
docs: update more documentation
2012-03-29 13:34:50 +02:00
Wim Taymans
9aa9751938
review some docs
2012-03-28 18:12:23 +02:00
Wim Taymans
3e6238135d
buffer: simplify and refactor _span and _merge
...
Unify the _span and _merge code paths and simplify now that we only use this
internally.
2012-03-28 16:48:51 +02:00
Wim Taymans
315e77bf81
buffer: we always call _span with the buffer size
2012-03-28 16:48:51 +02:00
Wim Taymans
127074986c
buffer: move some code around
2012-03-28 16:48:51 +02:00
Wim Taymans
8fc290a27f
buffer: we call _span always with 0 offset
2012-03-28 16:48:51 +02:00
Wim Taymans
a4c861a4d3
buffer: remove always FALSE function argument
2012-03-28 16:48:50 +02:00
Mark Nauwelaerts
1af261169c
buffer: delay buffer unref until buffer no longer needed
2012-03-28 16:39:54 +02:00
Wim Taymans
bb876588ac
buffer: unify buffer merge methods
...
Add gst_buffer_append() which appends the memory blocks from one buffer to
another. Remove the old inefficient _merge() and _join() methods which forced a
premature memcpy in most cases.
Remove the _is_span() and _span() methods they are not needed anymore now that
we can _append(). Merging and spanning will be delayed until mapping or maybe
not at all when the element can deal with the different memory blocks.
2012-03-28 12:51:58 +02:00
Olivier Crête
fd675fa385
gstpad: Fix typo in docstring
2012-03-27 15:25:58 -04:00
Olivier Crête
37db4eefbf
gstpad: Fix typo in docstring
2012-03-27 15:24:49 -04:00
Wim Taymans
a137002ef1
buffer: re-enable _span offset calculations
...
when we _span two complete buffers, we can copy offsets and timestamps.
2012-03-27 15:16:55 +02:00
Wim Taymans
a080b81808
trace: add refcount to trace debug
2012-03-27 15:00:38 +02:00
Wim Taymans
8ff7a0978d
buffer: add more _is_writable checks
...
Add some checks to assert on writability for functions that modify metadata.
2012-03-27 14:59:06 +02:00
Wim Taymans
08f33d8d93
bufferpool: remove const from get/set_param
...
Remove the const from the GstCaps in get/set_param. set_param modifies
the refcount of the caps.
Don't increment the refcount of the caps result of get_param like we
do with other objects.
Update some annotiations.
2012-03-27 12:48:59 +02:00
Wim Taymans
f09ab3b007
bufferpool: fix annotation for _release
...
_release takes ownership of the buffer
2012-03-27 12:48:59 +02:00
Sebastian Dröge
9c4c9e3b6b
bus: Change the timeout argument type of gst_bus_poll() from GstClockTimeDiff to GstClockTime
...
This is more consistent with the other GstBus methods that have a timeout.
2012-03-27 12:31:18 +02:00
Wim Taymans
e08956907c
caps: remove old code
...
Remove attempt to delay _make_writable
2012-03-26 19:13:21 +02:00
Mark Nauwelaerts
7a7119ec99
caps: ensure writable caps prior to modification
2012-03-26 18:08:10 +02:00