Wim Taymans
484d188440
basesink: post a warning on excessive framedrops
...
When we go into emergency rendering, post a warning informing the user about
this fact.
2009-06-01 19:37:14 +02:00
Wim Taymans
5479772bec
basesink: more stepping in reverse
...
Fix stepping and position reporting in reverse playback.
2009-06-01 13:37:29 +02:00
Wim Taymans
8c54c70d9c
basesink: use start_time as the step start
...
Use the start_time of the element as the point from where the step operation
starts. This fixes stepping in all paused states.
2009-06-01 13:37:29 +02:00
Wim Taymans
642bb32196
basesink: catch step cases in _wait_preroll()
...
When a subclass is blocking in _wait_preroll() in the _render method, make sure
we can unlock the subclass and detect this return value from the render method.
2009-06-01 13:37:29 +02:00
Wim Taymans
1caab05238
basesink: more stepping in reverse fixes
2009-06-01 13:37:28 +02:00
Wim Taymans
4be27fa555
basesink: small cleanups
2009-06-01 13:37:28 +02:00
Wim Taymans
0c205b96b4
framestep: implement backwards framestep
...
Update framestep document, we want to pass the flush flag in the step-done
message.
Add flush flag to the gstmessage.
Update examples to use the new step-done message api.
Implement framestep with playback rates < 0.0 too.
2009-06-01 13:37:28 +02:00
Wim Taymans
1839782379
basesink: add framestepping in time
2009-06-01 13:37:28 +02:00
Wim Taymans
7a7e9629ce
basesink: keep track of stepped time
...
Pass running_time around so that the stepping code can calculate the elapsed
time correctly.
2009-06-01 13:37:27 +02:00
Wim Taymans
f07b86f18b
basesink: move stuff around, more stepping
...
Make start and stop_stepping methods and move their invocation in the right
places.
Perform the atual stepping operation where we have full context about the
timestamps.
2009-06-01 13:37:27 +02:00
Wim Taymans
546c959f26
basesink: first stab at frame stepping in PAUSED
...
Unlock the prerolled frame and recheck if we need to step.
Keep a simple counter for the frames we're about to skip while stepping and
preroll/post step_done when stepping finished.
2009-06-01 13:37:26 +02:00
Arnout Vandecappelle
c74c3bf1b3
adapter: fix _masked_scan_uint32() at boundaries
...
gst_adapter_masked_scan_uint32 could return values smaller than offset
if the first byte(s) of the mask are 0 and the pattern matches the
beginning of the adapter.
Added examples to documentation of gst_adapter_masked_scan_uint32().
Also added some more masked boundary tests.
Fixes #584118
2009-05-28 22:02:21 +02: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
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
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
9197f4399b
adapter: avoid branch in copy code
2009-05-20 10:28:45 +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
Sebastian Dröge
10743802be
controller: Use ordered GSequence instead of GList
...
This makes lookups and insertions O(log n) instead of
always O(n) for insertions and O(n) in worst case for
lookups.
Fixes bug #582564 .
2009-05-14 22:13:47 +02:00
Wim Taymans
b23279e922
adapter: don't use realloc, it does a memcpy
...
Don't use realloc to grow the scratch area because we don't want the memcpy the
old useless data into the new area before we write our new stuff in it.
2009-05-13 23:52:02 +02:00
Wim Taymans
cc7985ab48
adapter: use g_realloc for resizing the buffer
...
Use g_realloc for resizing the internal buffer instead of a
less fancy _free/_malloc pair.
2009-05-13 22:51:18 +02:00
Wim Taymans
bb013081a4
adapter: move new member to private struct
...
Move the new members to a private struct because we don't have enough padding
anymore on 32-bits platforms.
2009-05-13 21:35:23 +02:00
Wim Taymans
763a6f6761
adapter: update some docs
2009-05-13 18:50:23 +02:00
Wim Taymans
3d19b75147
adapter: add method to keep track of timestamps
...
Keep track of the timestamp and offset associated with the current head of the
adapter.
API: GstAdapter::gst_adapter_prev_timestamp()
2009-05-13 16:22:58 +02:00
Wim Taymans
8ceff30ca9
adapter: small cleanups
2009-05-13 16:20:26 +02:00
Wim Taymans
605639a2bf
adapter: optimize taking the headbuffer
...
When a are requested to take a buffer from the adapter that is exactly the
headbuffer, don't make a subbuffer of it but return that head buffer.
Add a unit-test for this new optimisation.
2009-05-12 10:25:40 +02:00
Wim Taymans
50bcf96ffe
basesrc: don't ignore pad_start return value
2009-05-11 23:06:39 +02:00
Stefan Kost
e778c5fd8b
logging: fix unused variable warning when disabling debug logs.
...
The var was NULL anyway, bacause of the ifdefs there, the message makes no
sense including it.
2009-04-15 23:35:35 +03:00
Stefan Kost
dd3c9ab6b6
controller: factor out duplicated code and add a description for it.
...
Also fix typo in the tests while reviewing them.
2009-04-14 22:08:56 +03:00
Edward Hervey
9e4fa43657
basesink: Remove dead assignments.
...
sstart/sstop/rstart/rstop are all either:
* assigned values later on before being used in 'do_times:' (EOS and buffers)
* not used (non-EOS events)
2009-04-04 14:39:51 +02:00
Edward Hervey
ec3cd5d438
basesrc: remove dead assignment.
...
The variable will not be read before it's assigned a value line 942/945
2009-04-04 14:38:52 +02:00
Sebastian Dröge
d12034ab4b
gst: Use g_once_init* or G_DEFINE_TYPE
2009-04-04 10:59:39 +02:00
Edward Hervey
14b356b439
controller: remove dead assignment.
...
The value of prop is being overwritten just after without being read.
2009-04-03 12:57:24 +02:00
Edward Hervey
471bd93af5
adapter: remove dead assignment.
...
The value set to to_copy at that line is never used, and is overwritten
further down before being read.
2009-04-03 12:57:24 +02:00
Edward Hervey
6577af3635
basesink : Remove unused variable.
...
sync is never used anywhere in that code.
2009-04-03 12:57:24 +02:00
Edward Hervey
9bf1d7247a
basetransform: move unused variable in the #if 0 block.
...
That variable is only used by the code which has been if 0'd
2009-04-03 12:57:24 +02:00
Edward Hervey
00cbbc87c7
Remove unused variables detected by LLVM's Clang static analyzer.
2009-04-03 12:56:48 +02:00
Sebastian Dröge
3933296685
gstcheck: Call gst_check_init() before creating the suite
...
This allows using the GStreamer or GObject API in the suite
creation function.
2009-04-02 10:44:23 +02:00
Tim-Philipp Müller
13f8041238
basesink: fix once-per-second 'emergency rendering' for case where all buffers but the very first are late
...
Due to a typo basesink didn't do any emergency rendering of late buffers
if the only buffer ever rendered was the first one with timestamp 0. This
means that in cases where the decoder is very very slow, we'd never see
any buffers but the very first one rendered. Fixes #576381 .
2009-03-23 12:34:34 +00:00
Stefan Kost
b118e869a2
controller: Fix generation of control-change arrays.
...
When generating arrays of control changes timestamp variable was used instead
the local ts variable that we increment when stepping through the array.
Pointed out by Martin Pokorny.
2009-03-20 11:28:37 +02:00
Tim-Philipp Müller
d430552ec3
gstcheck: fix for check versions > 0.9.6
...
A new argument allowed_exit_value was added in SVN recently (#574213 ).
2009-03-19 21:31:08 +00:00
Stefan Kost
c2f1cb40fc
collectpads: add debug logging to make it easier to trace it
2009-03-15 23:41:33 +02:00
Edward Hervey
c1a75a0b45
gstbasesrc: unsigned long is "%lu", not "%ul". Fixes build on macosx
2009-03-11 11:23:05 +01:00
Stefan Kost
36205e7d42
logging: some additional logging for tracing caps negotiation.
...
Demote one log that can come quite often. Remove one fixme that is done. Apply
gst-indent changes.
2009-03-10 21:13:40 +02:00
Stefan Kost
de48f9c507
collectpads: revert accidential commit from the queue (me should start using branches)
2009-03-06 22:10:10 +02:00