summaryrefslogtreecommitdiff
path: root/libs
AgeCommit message (Collapse)Author
2010-03-03docs: fix up bytewriter doc chunks for float functions as wellTim-Philipp Müller
2010-03-03bytewriter: fix headers for float/double writing functionsTim-Philipp Müller
The functions are called gst_byte_writer_put_{float32|float64}_*() and not gst_byte_writer_put_{float|double}_*(). Spotted by: Benjamin Otte <otte@redhat.com>
2010-02-26basesink: fix emergency rendering timestamp trackingMark Nauwelaerts
Specifically, if all (including initial) buffers turn up late, emergency rendering should also kick in appropriately. Fixes #611087.
2010-02-19interpolationcontrolsource: Don't pass NULL pointers to GSequence APISebastian Dröge
This causes assertion failures. Fixes bug #610444.
2010-02-19interpolationcontrolsource: Add const qualifiers to values in the _set functionsSebastian Dröge
The values are not modified and are copied, a const before the parameter should make this even more obvious.
2010-02-19controller: Add some FIXME 0.11 commentsSebastian Dröge
2010-02-18gstcheck: more debug logging for gst_check_element_push_buffer_list()Tim-Philipp Müller
2010-02-18collectpads: Improve docs about 'data' attributeThiago Santos
Adds a reminder to 'data' attribute doc Fixes #610366
2010-02-17basesrc: Don't use expensive cast checks in get_range.Edward Hervey
_get_range() is a pad function set by ourselves, therefore we're certain that the parent is a GstBaseSrc. Speeds up _get_range by 38%, and the total call by 30%. (valgrind instruction calls measurements). Fixes #610246
2010-02-15docs: fix gtk-doc chunk for gst_check_element_push_buffer_list()Tim-Philipp Müller
2010-02-12bytewriter: add _fill functionThiago Santos
Adds a new function to GstByteWriter that writes a constant value to a memory area (aka memset). Useful for adding padding to buffers. Also updates .def file and docs. API: gst_byte_writer_fill()
2010-02-12basesrc: Make locking of the segment a bit more strict and update documentationSebastian Dröge
Updating the segment values must only be done while holding the STREAM_LOCK and OBJECT_LOCK. This means, reading can be done as long as one of them is held, not both, which removes some lock-unlock blocks from performance critical code paths. Also document, that gst_base_src_set_format() *must* be called in states <= READY and add an assertion for this. Changing the format later will completely mess up the segment information.
2010-02-12basesrc: Protect segment values from concurrent access from different threadsSebastian Dröge
This could happen easily in the query functions or when the size is set on appsrc from some non-streaming thread.
2010-02-01gstbytewriter: Fix different function names in .h and .cThiago Santos
gst_byte_writer_reset_and_get_buffer wasn't declared in .h, instead there was _reset_and_get_data_as_buffer. Replace it with the real function name, that is smaller and matches gst_byte_writer_free_and_get_buffer https://bugzilla.gnome.org/show_bug.cgi?id=608726
2010-01-20gst_private.h: make sure gst_private.h is included before glib.hTim-Philipp Müller
For the reason outlined at the beginning of gst_private.h (inline functions in glib may need the g_log_domain variable). Also include gst_private.h before using any G_OS_* defines, esp. in plugin loader.
2010-01-17basetransform: Only use suggested caps in buffer allocation if a size was ↵Sebastian Dröge
suggested too
2010-01-14basetransform: Handle buffers with NULL caps correctlySebastian Dröge
This means that the caps didn't change so don't try to handle the NULL caps as the new caps.
2010-01-12typefind: add a new method that also uses the file extensionWim Taymans
Add a method to perform get_range typefinding that also uses the uri/location extension as an extra hint. It will first try to call the typefind functions of the factories that handle the given extension. The result is that in the common case, we only call one typefind function, which speeds up the typefinding a lot.
2010-01-10check: remove some cruft from header fileTim-Philipp Müller
Remove some cruft from the gstcheck header file that's not needed any longer now that we ship with our own copy of libcheck.
2010-01-05check: patch internal check copy some more so that failures actually failTim-Philipp Müller
Include unistd.h so that _POSIX_VERSION is actually defined when it should be defined. Without that, stuff like fail_if(1) doesn't actually fail, presumably because other parts of the code do include unistd.h and then have _POSIX_VERSION defined. Fixes #604565 even more.
2009-12-24collectpads: don't keep buffers reffed longer than neededWim Taymans
Make sure we take ownership of the buffer early without increasing its refcount when we go in the collect function. This reduces the amount of copies needed in order to make the buffer writable in most cases.
2009-12-24collectpads: avoid doing subbuffers when we canWim Taymans
In some cases we can avoid allocating a subbuffer and instead simply ref the buffer. Callers should perform _make_metadata_writable() in all cases now.
2009-12-24collectpads: add ability to install clipping functionsWim Taymans
Add a method to install a clipping function that is called when a buffer is received. Users of collectpads can then perform clipping on the incomming buffers. Also retab the header file a little. See #590265
2009-12-19check: patch internal check copy so it works with our build systemРуслан Ижбулатов
Fixes #604565.
2009-12-19check: update autotools and docs stuff for new check versionРуслан Ижбулатов
2009-12-17check: update internal libcheck to 0.9.8Tim-Philipp Müller
2009-12-11basesink: add some more debuggingWim Taymans
2009-12-08basesink: Allow update NEWSEGMENT events after EOSSebastian Dröge
This allows demuxers to update the segment stop of an already finished stream. This might be needed if some stream goes to EOS before the duration of the longest stream is known to properly set the segment stop of all streams to the same value in the end.
2009-12-04basesrc: Shut down the pad task when the initial seek fails.Jan Schmidt
Set the pad flushing and stop the pad task when the initial seek fails during activation. Avoids racy calls into the _create() function when BaseSrc::stop() has already run. Fixes: #603059 Also, fix some misspelled comments.
2009-12-01basesrc/basesink: Register debug funcptr only once.Edward Hervey
Makes basesrc/basesink initialization 3-4 times faster and avoids contention on the global funcptr lock
2009-11-28basesink: clip stepping boundariesWim Taymans
Rounding errors with the floating point rate could make it so that we don't end up exactly at the required stepping duration. Use the segment clipping boundaries, which are not subject to rate adjustements, instead to detect when we reached the stepping duration. Add some debug info related to going to the PAUSED state.
2009-11-27docs: fix broken xrefsStefan Kost
2009-11-27docs: fix broken xrefsStefan Kost
2009-11-21basesrc: Add gst_base_src_new_seamless_segment()Jan Schmidt
Merge new function from resindvd into the primary GstBaseSrc for starting a new seamless segment. API: gst_base_src_new_seamless_segment()
2009-11-20bytewriter: fix compiler warningTim-Philipp Müller
Some gcc versions warn about bytewriter writing to memory accessed via a const guint8 pointer, despite our explicit cast to guint8 *. Work around that by using an intermediary variable. Fixes #598526.
2009-11-19basesink: Clamp the base time correctly in position reportingJan Schmidt
When clamping the base time, correctly use 'now', instead of '-now' - the intent is to prevent 'now-base' ever being negative, which would cause a position report outside the segment. Fixes: #602419
2009-11-18check: fix symbol exporting when building under et_EE localePriit Laes
[A-Z] regexp fails under et_EE locale because Z in Estonian alphabet is located after S and therefore characters starting with 'TUV...' are not in the range anymore. Fixes bug #602093.
2009-11-18basesink: Handle the new sink-message eventSebastian Dröge
2009-11-18plugin-scanner: rename plugin-scanner helper binary to gst-plugin-scannerTim-Philipp Müller
and install into a different directory $(libexecdir/gstreamer-0.10) so that everything is versioned properly. NOTE: run 'make clean' after updating; if you are running an uninstalled setup, you will need to update your gst-uninstalled script (unless it's symlinked to gstreamer core master) and exit/enter your uninstalled environment to get the updated environment. If you are running an installed setup, you should run 'make uninstall' before merging this change or remove the old plugin-scanner binary manually. Fixes #601698.
2009-11-16basesink: fix position reportingWim Taymans
Only update the current stream time after we checked if we got a new step event. This improves the position reporting by the sink. See #595958
2009-11-11basesink: Fix treating base_time as unsigned in position calculationJan Schmidt
Element base_time is a signed quantity, which leads to basesink returning a position of 0 when dealing with a negative base time - which are quite legal when clocks (such as the audio clock) are close to 0. This doesn't manifest in normal pipelines, of course - but can happen (at least) when manually setting the base time on a pipeline.
2009-11-05pad: rename new api from _refed to _reffed.Stefan Kost
Due to popular demand rename the new api as we still can. API: gst_pad_get_caps_reffed(), gst_pad_peer_get_caps_reffed()
2009-10-28optimisation : Use g_object_newv where possible.Edward Hervey
This avoids: * triple-checking for the GType when type-checking is enabled (see #597260) * Avoids going through an expensive no-argument checking which landed in glib-2.22 * Avoids going through 2 extrac functions (g_object_new -> g_object_new_valist)
2009-10-28Remove GST_DEBUG_FUNCPTR where they're pointlessTim-Philipp Müller
There's not much point in using GST_DEBUG_FUNCPTR with GObject virtual functions such as get_property, set_propery, finalize and dispose, since they'll never be used by anyone anyway. Saves a few bytes and possibly a tenth of a polar bear.
2009-10-24typefindhelper: Remove obsolete FIXMESebastian Dröge
It's not necessary (and not a good idea) to cache the typefind factory list anymore.
2009-10-24typefind: Keep typefind factories sorted in the registry. Fixes #599147Edward Hervey
This avoids having to do the sorting everytime we use typefind The behaviour of gst_type_find_factory_get_list has subtlely changed in the sense that the order was previously undefined, whereas now it returns them sorted by rank and then by name.
2009-10-18controller: just cast in internal API where we have checked parameters alreadyStefan Kost
2009-10-18controller: use g_slice for controlled property structuresStefan Kost
Use g_slide instead of nomal g_new, Also don't init struct with 0 as we need to init it anyway with the real values. Also join the 3 flags checks into one.
2009-10-18libs/base/typefindhelper: Remove useless typechecking in tight loopEdward Hervey
The list against which we run the comparefunc will only contain GstPluginFeature, therefore remove the 6 expensive type checks we do for every single comparision.
2009-10-15basesrc: fix race in PLAYING->PAUSED->PLAYINGWim Taymans
When we quickly switch from PLAYING to PAUSED and back to PLAYING it's possible in some cases that the task refuses to start, This is because when we go to PAUSED, we unschedule the clock timeout, which could return UNSCHEDULED when we're back to PLAYING, causing the task to PAUSE again with a wrong-state. This patch checks if we are running when we return with an UNSCHEDULED return value and if we are, try to create a new buffer. Fixes #597550