Commit graph

12051 commits

Author SHA1 Message Date
Edward Hervey d96ce2a6a7 registry: We name the registry after the target cpu
And not the host cpu
2012-06-06 18:11:50 +02:00
Edward Hervey a68b0ded3e Switch to new master common for target cpu defines 2012-06-06 18:11:50 +02:00
Havard Graff a4b9b79c96 Make sure that unlinked pads do not cause a return false on latency events.
Context: Latency configuration should not be
messed up because of not-linked pads. In general,
one return FALSE on latency distribution causes
the "overall" pipeline latency configuration to
fail. This shows up as noise in logs (warning).
2012-06-06 13:22:19 +02:00
Sebastian Dröge 9760c012f6 Revert "pad: Check via gst_pad_accept_caps() if a sinkpad accepts caps"
This reverts commit 7558fd21ee.

Many elements, like ac3parse, depend on the broken behaviour and
stop working after this change.
2012-06-05 08:33:28 +02:00
Sebastian Dröge 7558fd21ee pad: Check via gst_pad_accept_caps() if a sinkpad accepts caps
instead of just checking if the pad template caps would allow the caps.

The actually supported caps can be far more restrictive than the
template caps and only checking for the template caps can cause
incompatible caps to be set on a pad.

Fixes bug #677335.
2012-06-04 09:31:07 +02:00
Sebastian Dröge 1c0764f764 ghostpad: Don't propagate setcaps() calls to the target pads
The core will do this during dataflow already and additionally
does compatibility checks then. Let it be handled by the core
as for every other pad too.

Fixes bug #677335.
2012-06-04 09:29:22 +02:00
Andre Moreira Magalhaes (andrunko) 2424d9896c inputselector: Correctly get current running time when syncing to the segment information
Fixes bug #677263.
2012-06-01 16:36:19 +02:00
Edward Hervey c981f99df1 Automatic update of common submodule
From 96f075b to b098abb
2012-06-01 10:20:51 +02:00
Olivier Crête 5431af5415 funnel: Release object lock before pushing EOS event
When releasing a pad, if all other pads are EOS, then release
the object lock before sending an EOS.
2012-05-31 13:24:08 -04:00
Mike Ruprecht f3b2dd6fa1 tests: Add funnel test to cover EOS event handling 2012-05-31 12:58:00 -04:00
Mike Ruprecht d397ea972d funnel: Only emit EOS event if all sinkpads have received one
If multiple sources are plugged into the funnel and one of the
sources emits an EOS, that event is propogated through the funnel
even though other sources connected to the funnel may still be
pushing data. This patch waits to send an EOS event until the
funnel has received an EOS event on each sinkpad.
2012-05-31 12:58:00 -04:00
Mike Ruprecht 2737bf1dd6 tests: Fix invalid read when releasing request pads in funnel tests 2012-05-31 12:58:00 -04:00
Mike Ruprecht 03ce735b07 funnel: Fix buffer leak 2012-05-31 12:58:00 -04:00
Andre Moreira Magalhaes (andrunko) 8f267451f4 inputselector: Don't try to sync on the segment if it has no TIME format
...and wait until it is actually configured and has a format before
trying to sync.
2012-05-31 17:45:29 +02:00
Sebastian Dröge e8e9c45c21 inputselector: No need to broadcast the signal in flush-stop
Everything stopped at this point already.
2012-05-31 17:03:54 +02:00
Bastien Nocera cdb3087746 queue2: Fix property name in the docs
temp-template, not temp-tmpl

https://bugzilla.gnome.org/show_bug.cgi?id=677170
2012-05-31 12:56:47 +02:00
Andre Moreira Magalhaes (andrunko) cd798a0a52 inputselector: Properly sync when changing streams
This adds properties to use the clock time for deciding when
to drop buffers for inactive pads and a property to buffer all
not rendered buffers for the active pad to allow pad switching
without losing any buffers at all.
2012-05-31 11:49:29 +02:00
Sebastian Dröge 732238b66b Automatic update of common submodule
From 1e6c5ea to 96f075b
2012-05-30 12:38:08 +02:00
Sebastian Dröge 67636c84a8 Automatic update of common submodule
From ff4cad1 to 1e6c5ea
2012-05-30 12:29:32 +02:00
Sebastian Dröge 66d78c2469 Automatic update of common submodule
From bb15f1a to ff4cad1
2012-05-30 11:21:58 +02:00
Josep Torra e2ba0db760 debugutils: Fix static linking on OS X
The linking behaviour of external variables that are not initialized
in the compilation unit where they are defined is undefined. On OS X
this causes a linking failure when statically linking GStreamer.
2012-05-25 10:56:12 +02:00
Luis de Bethencourt 7bfa95d179 docs: fix a typo in part-segments.txt 2012-05-24 11:52:27 +01:00
Brian Cameron 30c6d0cc35 typefind: fix prototype of helper_find_suggest
The proto for helper_find_suggest has a different argument than the actual
function in the same file has.  This causes the Sun Studio compiler to fail.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676624
2012-05-24 11:04:47 +02:00
Stefan Sauer cffb31238a info: include element name for event-src if it is a pad
Pad names alone are not unique/helpful as a information about the source of an
event. Therefore inlcude the element name if the event-src is a pad.
2012-05-24 09:59:18 +02:00
Edward Hervey 16d96f71da uri: Add some debug statements 2012-05-22 18:28:22 +02:00
Stefan Sauer 50f2e03977 docs: improve the seeking docs more.
Also mention it on _element_seek{,_simple} and be more precise why it happens.
2012-05-21 15:17:47 +02:00
Stefan Sauer fea09dfbfc docs: fix a typo and clarify event handling a bit more
Tell about async_done messages for some events and review the _event_new_seek
docs.
2012-05-21 14:35:03 +02:00
Wim Taymans 554b81ed24 bin: try harder to avoid state changes in wrong direction
When the bin does an upward state change, try to avoid doing a downward state
change on the child and vice versa.
Add some more unit tests for this fix.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=621833
2012-05-18 15:04:35 +02:00
unknown 57564ed276 basesrc: default return TRUE for latency-events reaching the src
The src is the final stop for this event, and the default result is FALSE
for all sources not implementing event handling, which again will result
in a warning about latency not being able to be configured.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=667299
2012-05-18 10:14:55 +02:00
Idar Tollefsen 7a70c91ac3 configure: explicitly check for sys/mman.h header
And use header-specific guards.

https://bugzilla.gnome.org/show_bug.cgi?id=667292
2012-05-15 19:05:42 +01:00
Tim-Philipp Müller f85885474c filesrc: remove unused or questionable madvise() calls in deprecated mmap code paths
use-mmap functionality has been removed in 0.11 and doesn't really
have any performance advantages in most cases anyway. Deprecate
"sequential" property to hint sequential access in mmap mode and
make it non-functional. Chances are no one was using this ever
anyway, or inappropriately.

Remove madvise() calls. We would need to do extensive configure
checks to handle these properly on different systems, and it
doesn't seem worth adding that for code that's already removed
in 0.11 or questionable anyway (like madvise DONTNEED right
before munmap).

https://bugzilla.gnome.org/show_bug.cgi?id=667292
2012-05-15 18:43:59 +01:00
Wim Taymans 69bd7708c3 docs: improve docs 2012-05-14 10:16:22 +02:00
Vincent Penquerc'h a975fadbaf event: add new seek snap flags
They can be used to select snapping behavior (to previous, next, or
nearest location, where relevant) when seeking.

The seeking implementation (eg, demuxer) may currently ignore some
or all of these flags.
2012-04-30 09:52:04 +01:00
Sebastian Dröge 6d39c958cb gst-uninstalled: Add insanity, insanity-gst and gst-editing-services 2012-04-25 18:11:03 +02:00
Wim Taymans dd74e5cdc0 pad: fix typo in comment 2012-04-25 09:09:59 +02:00
Edward Hervey 184b6e555a ghostpad: Don't use g_signal_handler_disconnect_by_*
It introduces an unneeded overhead. Instead store the id of the
signal handlers and remove them properly
2012-04-24 16:12:15 +02:00
Sebastian Dröge 7848b66e3e message: Remove comma at end of enum list
This comma confuses some compilers.
2012-04-23 09:19:51 +02:00
Mark Nauwelaerts 5823dd4724 collectpads2: always recording incoming segment info if no buffer_func set 2012-04-17 12:23:48 +02:00
Vincent Penquerc'h b642b87579 collectpads2: assume 0 based segment if no time segment was provided
https://bugzilla.gnome.org/show_bug.cgi?id=669305
2012-04-16 11:08:07 +02:00
Wim Taymans bdda711d03 queue2: signal delete before waiting
When we don't have the requested data in the ringbuffer and we move our read
pointer to the requested position, signal the delete cond to inform the writer
that we changed the current fill level. If we don't, the writer might stay
blocked and we might wait forever.
2012-04-11 12:45:46 +02:00
Wim Taymans dc3d3674b1 queue2: add test for ringbuffer deadlock 2012-04-11 12:45:43 +02:00
Wim Taymans ccbeb19881 queue2: update current read position before waiting
When we don't have enough bytes in the ringbuffer to satisfy the current
request, first update the current read position before waiting. If we don't do
that, the ringbuffer might appear full and the writer will never write more
bytes to wake us up.
2012-04-11 12:45:41 +02:00
Wim Taymans 463a8d9abf queue2: add range only on sinkpad
Only add the range when we receive a segment event on the sinkpad. The add_range
method will modify the write position, which only makes sense to do on the
sinkpad.
2012-04-11 12:45:37 +02:00
Wim Taymans e3ca88ea7b queue2: fix debug message
We're not writing to the offset of the buffer
2012-04-11 12:45:31 +02:00
Wim Taymans 30c425c29f queue2: add_range already updates the level 2012-04-11 12:45:24 +02:00
Alexander Saprykin 30872d3a5f toc: fix memory leaks while copying content 2012-04-11 10:28:43 +02:00
Alexander Saprykin 932e063ec2 tocsetter: fix memory leaks in unit test 2012-04-11 10:02:21 +02:00
Alexander Saprykin 43c5930d17 toc: fix memory leaks in unit test 2012-04-11 10:02:06 +02:00
Wim Taymans 2e28804a6e queue2: clear seeking flag in all cases
Also clear the seeking flag when downstream is in pull mode.
2012-04-10 16:06:41 +02:00
Wim Taymans fd9c328260 gst: add toc entry ref/unref 2012-04-10 12:49:04 +02:00