Wim Taymans
791fa43812
buffer: avoid memory leaks
...
Avoid leaking the caps of the dest buffer and avoid doing needless caps
refs.
When the source and target buffers are the same, return immediatly.
2009-05-27 16:19:34 +02:00
Sebastian Dröge
4e8f547f98
API: Add gst_message_{new,parse}_tag_full() to get/set the source pad
...
Fixes bug #582588 .
2009-05-27 14:32:51 +02:00
Sebastian Dröge
db6f445620
Revert "element: Set the originating pad as message source in gst_element_found_tags_for_pad ()"
...
This reverts commit bebfde7502
.
This change shouldn't be done in a stable release series as
applications are actually expecting the sender to be an
GstElement. One example is totem.
2009-05-27 14:06:13 +02:00
Jan Schmidt
3bab12a3b0
Update common
2009-05-26 11:35:49 +01:00
Tim-Philipp Müller
a2be8a546a
Fix 'make distcheck'
...
The check-enum-gettypes rule didn't work for 'make distcheck' since
it makes assumptions about the location of the source files from the
current working directory which isn't true during distchecking.
2009-05-26 10:41:28 +01:00
Tim-Philipp Müller
7a265c1451
manuals.mak: attempt to make 'make distcheck' work with -jN
...
Attempt to fix the 'cannot create regular file build/image.entitites:
file exists' error I got.
2009-05-26 10:38:56 +01:00
Tim-Philipp Müller
23cdff62ea
docs: fix cdparanoia example pipeline in gst-launch man page
2009-05-26 09:51:51 +01:00
Wim Taymans
91f901975a
element: fix typo in comments
2009-05-25 18:45:19 +02:00
Jan Schmidt
f0abaa230b
dist: Fix the name of the header to dist: testrtpool.h, not rtpool-test.h
2009-05-25 17:43:32 +01:00
Jan Schmidt
525e61194c
Update common
2009-05-25 17:03:24 +01:00
Wim Taymans
03037d56f4
clock: remove assertion
...
Remove an assertion, this is not really an error in all cases.
Fixes #582010
2009-05-25 16:54:25 +02:00
Wim Taymans
cabc9cbbef
clock: enable monotonic clock when we can
...
Enable the monotonic clock by default when we can.
Fixes #583554
2009-05-25 16:23:30 +02:00
Wim Taymans
6fd78ac41c
docs: add Image to draft klass documentation
2009-05-25 14:53:08 +02:00
Wim Taymans
fd8559e4fb
pad: keep task ref before releasing the lock
...
Keep a ref to the task on the pad so that a concurrent stop can stop and join
the task.
2009-05-25 13:03:42 +02:00
Wim Taymans
d20de24c97
gsttask: avoid join to return early
...
Unset the running flag after we released the lock for posting the stream-status
message. If we set the running flag to FALSE too early, the join method will
just continue without waiting for the message to be posted, leading to potential
crashes.
2009-05-25 11:56:47 +02:00
Stefan Kost
9574d82bf9
preset: fix update rule
...
Only update the preset from system, if we had a preset before and system
version is newer.
2009-05-24 23:14:26 +03:00
Stefan Kost
5c4751c601
controller: add a benchmark to verify the switch to gsequence
2009-05-22 23:55:33 +03:00
Stefan Kost
1234000942
controller: add more error handling to example
2009-05-22 23:52:42 +03:00
Stefan Kost
158895f56b
registry: don't free node-date and deref again. Fixes #580579
...
When writing a cache chunk fails, we were freeing the node and jump to a final
cleanup which dereferenced a null pointer. Leve freeing the node to the cleanup
code in fail_free_list. (sorry for committing wrong fix before).
2009-05-22 23:16:00 +03:00
Stefan Kost
4faa75ab35
registry: don't free node-date and deref again. Fixes #580579
...
When writing a cache chunk fails, we were freeing the node and jump to a final
cleanup which dereferenced a null pointer. Leve freeing the node to the cleanup
code in fail_free_list.
2009-05-22 23:10:00 +03:00
Stefan Kost
04ece69838
controller: add G_LIKELY and join two if for same condition
...
A G_LIKELY for the sequence!=NULL checks. Join two ifs to an if-else. Add
indent guides to keep indent form breaking the function declaration
2009-05-22 14:21:39 +03:00
Edward Hervey
d72c17e328
gsttypefindhelper: Fix indentation
2009-05-22 12:57:10 +02:00
Stefan Kost
c2da78a953
docs: fix gtk-doc warnings
...
Move MT safety to main description (it does not belong to Return: or Since:
statement). Add a few missing return docs. Downgrade a normal comment froma doc
comment. Fix a doc header to only contain symbol name.
2009-05-22 12:53:11 +03:00
Jan Schmidt
8cefa6dd78
Automatic update of common submodule
...
From d3a8fab to 888e0a2
2009-05-22 10:19:36 +01:00
Jan Schmidt
77fd56bc17
dist: Add rtpool-test.h to the sources list so it gets disted.
...
Fixes the distcheck
2009-05-22 09:51:44 +01:00
Jan Schmidt
409181b36f
gitignores: Ignore the clockstress benchmark binary
2009-05-22 09:44:25 +01:00
Jan Schmidt
2437a08666
controller: Silence a warning from the GSequence being NULL.
...
Fix a warning that occurs when the self->priv->values is NULL and
the code tries to retrieve an iterator from it. The warning was showing
up in the checks for the volume element.
2009-05-22 09:43:02 +01:00
Jan Schmidt
c05e2382cb
docs: Fix up some documentation warnings.
...
Since: tags should always be the last thing in a doc block, apparently.
Add some Returns: descriptions to some recent functions.
2009-05-22 09:33:02 +01:00
Wim Taymans
f7c5767559
docs: update docs for stream_time->running_time
...
Change some instances where we wrongly refer to stream time where it should have
been running time.
2009-05-21 17:32:00 +02:00
Tim-Philipp Müller
3a8aba7e92
gst-launch: don't use G_GUINT32_FORMAT in translatable string
...
xgettext doesn't handle this very well. Fixes #583419 .
2009-05-21 10:57:47 +01:00
Tim-Philipp Müller
25b1849b80
autogen.sh: can remove the -Wno-portability from here now
...
since we added it to configure.ac.
2009-05-21 10:54:13 +01:00
Wim Taymans
72232cfef1
adapter: improve the flush function
...
Remove a compare and branch from flush.
2009-05-20 22:20:46 +02:00
Stefan Kost
6784355d52
controller: fix assertion when freeing the control source
2009-05-20 17:33:18 +03:00
Wim Taymans
fd76e4fc93
adapter: potentially save a memcpy in _take
...
Directly use the assembled_data in _take() functions when we can instead of
copying it out.
2009-05-20 12:48:41 +02:00
Wim Taymans
f3ff7ad055
adapter: micro optimisations
2009-05-20 11:36:11 +02:00
Wim Taymans
49c4e367e9
adapter: avoid comparisions in fast path
...
Small tweaks to reduce the number of useless compares in loops.
2009-05-20 11:12:43 +02:00
Wim Taymans
23314ddefb
tests: one more adapter test
2009-05-20 10:28:46 +02:00
Wim Taymans
9197f4399b
adapter: avoid branch in copy code
2009-05-20 10:28:45 +02:00
Hannes Bistry
b47f425069
loadsave: fix requestpad handling and serialisation order.
...
Support request pads when loading. Reverse pad serialisation order to
preserve it when recreating the pipeline.
2009-05-20 10:58:59 +03:00
Wim Taymans
fca63abbe7
defs: add new symbol
2009-05-20 00:45:27 +02:00
Wim Taymans
13c4a06e03
docs: add new symbol to docs
2009-05-20 00:44:11 +02:00
Wim Taymans
270723c85c
adapter: add _masked_scan_uint32
...
Add a reasonably optimized new gst_adapter_masked_scan_uint32() function
to scan the adapter for a pattern after applying a mask.
Add some unit tests.
API: GstAdapter::gst_adapter_masked_scan_uint32()
Fixes #583187
2009-05-20 00:37:53 +02:00
Wim Taymans
d6b21ba529
adapter: more optimisations
...
Remove duplicate copy code (_peek_into and _copy) and make a unified
optimized copy function.
2009-05-19 22:13:04 +02:00
Tim-Philipp Müller
198dbe545c
configure: pass -Wno-portability to automake to suppress warnings
...
GNU make is required, no point pretending otherwise.
2009-05-19 17:16:02 +01:00
Tim-Philipp Müller
71c7ae6c07
docs: mention that GST_FORMAT_{PERCENT|BUFFERS} are not implemented
2009-05-18 01:00:36 +01:00
Sebastian Dröge
44ea1ac6b4
gstclock: Fix ABI breakage on 32 bit architectures
...
The padding of GstClock is a GstClockTime and not a
gpointer, so adding a pointer requires the padding
size to be changed depending on the pointer size.
Use an union instead.
Fixes bug #582878 .
2009-05-17 10:46:39 +02:00
Thiago Santos
f2890f46a5
[gstvalue] adds safety parenthesis to macros missing them.
2009-05-15 15:26:18 -03:00
Thiago Santos
69a1a60a87
[gstutils] Adds more safety to GST_WRITE_* and GST_READ_ macros.
...
Adds safety ( ) to parameters in _GST_PUT and _GST_GET macros.
Fixes #582708 .
2009-05-15 15:26:17 -03:00
Wim Taymans
bb8f296d45
clock: use seqlocks to parallellize readers
2009-05-15 16:14:52 +02:00
Wim Taymans
f83809cf37
stress: add a clock stresstest
...
Add a stresstest for gst_clock_get_time().
2009-05-15 16:13:04 +02:00