Tim-Philipp Müller
8bdcb84abd
elements: add new valve element to build
...
Moved from gst-plugins-bad
https://bugzilla.gnome.org/show_bug.cgi?id=630808
2010-12-31 00:51:12 +00:00
Stefan Kost
ecc9106b9b
valve: no need to ref the object in _chain
...
Don't ref the pad in chain, like elsewhere
2010-12-31 00:51:12 +00:00
Olivier Crête
11eb6ef836
valve: Make the drop variable into an atomic.
...
Using an atomic allows us to avoid locking the whole object all time time.
As suggested by Stefan Kost.
2010-12-31 00:51:11 +00:00
Olivier Crête
473be88d5d
valve: Correctly set the DISCONT flag after dropping buffers
2010-12-31 00:51:11 +00:00
Olivier Crête
37e02eb7c7
valve: Remove superflous checking casts
2010-12-31 00:51:11 +00:00
Olivier Crête
80a766b39b
valve: Fix style, improve comments
...
Minor improvements to the comments and break a few overly long lines
2010-12-31 00:51:11 +00:00
Stefan Kost
f90bddfa39
valve: move default: parst in the switch statement to the end
...
Now sure if it matters, but the previous form looks weired.
2010-12-31 00:51:11 +00:00
Stefan Kost
65f13f70f6
valve: move debug-category registration to type init
2010-12-31 00:51:11 +00:00
Stefan Kost
4b1c3896d6
valve: use G_PARAM_STATIC_STRINGS on properties
2010-12-31 00:51:11 +00:00
Stefan Kost
2b70b14591
valve: GST_BOILERPLATE already sets parent_class
2010-12-31 00:51:11 +00:00
Benjamin Otte
a2de9458c1
valve: gst_element_class_set_details => gst_element_class_set_details_simple
2010-12-31 00:51:10 +00:00
Olivier Crête
91190eea08
docs: document valve element
2010-12-31 00:51:10 +00:00
Olivier Crête
59d98afb9b
fsvalve: rename to valve
2010-12-31 00:51:10 +00:00
Olivier Crête
aad953be13
fsvalve: re-indent gst style
2010-12-31 00:51:10 +00:00
Olivier Crête
fc4deda3aa
fsvalve: Ignore errors if dropping is set to true
2010-12-31 00:51:10 +00:00
Olivier Crête
a3d21f7147
fsvalve: Add getcaps proxying to the valve
2010-12-31 00:51:10 +00:00
Olivier Crête
01fdde0876
fsvalve: Rebase valve onto gstelement instead of basetransform
2010-12-31 00:51:10 +00:00
Olivier Crête
6119abb63c
fsvalve: Revert "Fix refcounting issues in prepare_output_buffer"
...
This reverts commit 65dd460f0a3a9c4882e638c86208f74ef62c3460.
2010-12-31 00:51:10 +00:00
sjoerd@luon.net
ff36774a30
fsvalve: Fix refcounting issues in prepare_output_buffer
...
20080805113057-be0f2-9dc270781f0a0f21c616ed11dbd1f198fd1b326e.gz
2010-12-31 00:51:10 +00:00
Olivier Crete
2b612137d7
fsvalve: Remove unused dispose method in valve
...
20080409163221-3e2dc-92ccb2db874e46e0d92c15520577c1be0e2bc617.gz
2010-12-31 00:51:10 +00:00
Olivier Crete
e384295df0
fsvalve: Dont hold the object lock while calling base alloc function
...
20071219203230-3e2dc-6519175d8d81496515b2d9060ac316650560f691.gz
2010-12-31 00:51:09 +00:00
Olivier Crete
8362bb9275
fsvalve: Set the DISCONT flag after dropping buffers
...
20071219203218-3e2dc-bc5f03d88ff5837040b9214de016cc142776dfc2.gz
2010-12-31 00:51:09 +00:00
Olivier Crete
6db2a426c1
fsvalve: Use do the alloc_buffer function in the valve
...
20071219005739-3e2dc-2a0fdfa2f38f03ab4791fe5c4ab85e8790113683.gz
2010-12-31 00:51:09 +00:00
Olivier Crete
67c6adaf31
fsvalve: Only set passthrough to TRUE on newer versions of gst
...
20071121200858-3e2dc-b16cdeabbc3c0562c6fc7b11b9b9792c910f569e.gz
2010-12-31 00:51:09 +00:00
Olivier Crete
51af047576
fsvalve: Compare minor, not major
...
20071121181729-3e2dc-a5997c3b7f5c86966370969714facf8ee242659d.gz
2010-12-31 00:51:09 +00:00
Olivier Crete
1a47ba87dc
fsvalve: Make the valve element work with gst < 0.10.13
...
20071026223749-3e2dc-18f685a4e45fbdce677ac777586876fc719d7222.gz
2010-12-31 00:51:09 +00:00
Olivier Crete
32b5931ae2
fsvalve: Rename valve to fsvalve
...
20071024224246-3e2dc-c54216af2ef0ef3f1a2206d723e87be2a23ab8ed.gz
2010-12-31 00:51:08 +00:00
Olivier Crete
5ddbaf15d5
fsvalve: Add valve element
...
20071024224147-3e2dc-f28ab0c073e283894b65c22c4f44397c897dec01.gz
2010-12-31 00:51:08 +00:00
Tim-Philipp Müller
239a63a777
fakesink: make variable static
2010-12-30 18:31:11 +00:00
Tim-Philipp Müller
8a7fc1d8c9
Revert "micro-optim: if (x) is cheaper than if (x > 0) for unsigned integers"
...
This reverts commit 6aa8ca37ee
.
See http://article.gmane.org/gmane.comp.video.gstreamer.devel/32282
2010-12-26 21:21:43 +00:00
David Schleef
3889c3c579
elements: reenable fdsrc/fdsink on MSVC
2010-12-24 14:02:08 -08:00
Mark Nauwelaerts
e0f15e666a
multiqueue: return upon input when already eos
...
... rather than hanging incoming thread (as considered full in eos).
2010-12-03 13:35:49 +01:00
Edward Hervey
6aa8ca37ee
micro-optim: if (x) is cheaper than if (x > 0) for unsigned integers
2010-12-03 12:03:42 +01:00
Andoni Morales Alastruey
d2d42082c3
fakesink: Print sink-message events like a message and the GstMessage structure
2010-12-03 09:50:31 +02:00
Edward Hervey
8f12a5e7cd
queue2: Only call update_buffering if needed.
...
update_buffering is so big it will never be inlined (and shouldn't),
we therefore move the check outside of it.
2010-12-02 19:04:57 +01:00
Edward Hervey
66bba2a49e
queue2: Avoid re-checking many times whether an item is a buffer
...
Avoids calling 6 times gst_buffer_get_type() for every item coming
through queue2
2010-12-02 19:04:56 +01:00
Edward Hervey
080c965f4f
queue2: Reduce amount of time locks are taken
2010-12-02 19:04:56 +01:00
Edward Hervey
ccb9ed2e80
queue2: Fixup documentation of some properties
2010-12-02 19:04:56 +01:00
Edward Hervey
8a79c1aa98
queue2: Avoid useless segment_to_running_time() calculations.
...
* Cache src and sink time
* Use a boolean to known whether src/sink time needs to be recalculated
Avoids 50% of calls to gst_segment_to_running_time()
2010-12-02 19:04:56 +01:00
Edward Hervey
0c2086a475
queue: Remove useless checks from e406f7
...
srcresult was being rechecked in places it couldn't have changed.
queue level was being rechecked in places it couldn't have changed.
https://bugzilla.gnome.org/show_bug.cgi?id=632780
2010-12-02 19:04:56 +01:00
Sebastian Dröge
6720373610
queue2: Remove dead assignment and unused variable
2010-12-02 19:02:08 +01:00
Sebastian Dröge
3b9d85d1a7
queue2: Remove dead assignment and move variable declaration into inner block
2010-12-02 19:02:08 +01:00
Sebastian Dröge
e554c7a1f6
queue2: Remove redundant variable
...
Other than saving an immense amount of 4 bytes of memory this
prevents clang from complaining and keeps the ring buffer state
in a single variable instead of two.
2010-12-02 19:02:08 +01:00
Tim-Philipp Müller
2ee5e4d8ac
queue2: don't leak pad ref in pull mode when flushing
...
Fix pad leak when queue2 is flushing or being shut down.
2010-11-01 12:34:15 +00:00
Tim-Philipp Müller
ce35fb79da
queue2: don't send seeks beyond the end of the file upstream in pull mode
...
If downstream is operating in pull mode, short-circuit any pulls beyond
the end of the file and return FLOW_UNEXPECTED immediately instead of
sending a seek beyond the end of the file upstream, since this might
confuse upstream elements (and/or http servers, for example). Fixes
playback of apple trailers in totem and youtube/html5 clips in
WebkitGTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=632977
2010-11-01 12:34:15 +00:00
Jan Schmidt
691807d634
multiqueue: Fix tracking of unlinked streams.
...
33082eb9e4
introduced a bug
preventing sparse unlinked streams from advancing properly,
leading to the queue blocking.
Fixes : #633176
2010-10-27 18:12:36 +02:00
Edward Hervey
cb2c028b39
queue2: Remove unused argument from find_range()
2010-10-13 12:05:44 +02:00
Edward Hervey
3812283854
fdsink: cleanup get_property/set_property
2010-10-13 12:05:38 +02:00
Wim Taymans
aa62c60a6c
queue: avoid g_cond_signal when we can
...
Keep track of what cond we are waiting on and only signal when some other thread
is waiting.
2010-10-12 18:48:10 +02:00
Wim Taymans
62ffd66f10
queue2: release queue2 lock before notify
...
Make sure that we don't hold the lock when we notify the temp-location
property,
Fixes #631853
2010-10-11 18:10:07 +02:00