summaryrefslogtreecommitdiff
path: root/gst/gdp
AgeCommit message (Collapse)AuthorFilesLines
2018-02-08Revert "gdpdepay: don't use allocator if it has custom alloc"Víctor Manuel Jáquez Leal1-9/+0
This reverts commit f6cb16ab8cecfe683473b173732ad040e858abd5.
2018-01-31gdpdepay: don't use allocator if it has custom allocVíctor Manuel Jáquez Leal1-0/+9
gdpdepay element uses the decide_allocation to fetch the downstream allocator. Nonetheless it is possible that allocate uses a custom alloc function, which is not usable by gdpdepay, crashing later the application when the allocater buffer is NULL. This patch checks for the allocator flags and reset it if the allocator has a custom alloc function. https://bugzilla.gnome.org/show_bug.cgi?id=789476
2018-01-31gdpdepay: don't allocation query if caps aren't fixedVíctor Manuel Jáquez Leal1-0/+5
When querying downstream for allocation, and the source caps hasn't set its caps, using ANY by default, it raises a critical message in console: CRITICAL **: gst_video_info_from_caps: assertion 'gst_caps_is_fixed (caps)' failed This patch bails out decide_allocation() if the caps aren't fixed. https://bugzilla.gnome.org/show_bug.cgi?id=789476
2017-05-16Remove plugin specific static build optionNicolas Dufresne1-1/+0
Static and dynamic plugins now have the same interface. The standard --enable-static/--enable-shared toggle are sufficient.
2017-04-12docs: Port all docstring to gtk-doc markdownThibault Saunier3-4/+5
2016-08-20Add support for Meson as alternative/parallel build systemNirbheek Chauhan1-0/+15
https://github.com/mesonbuild/meson With contributions from: Tim-Philipp Müller <tim@centricular.com> Matej Knopp <matej.knopp@gmail.com> Jussi Pakkanen <jpakkane@gmail.com> (original port) Highlights of the features provided are: * Faster builds on Linux (~40-50% faster) * The ability to build with MSVC on Windows * Generate Visual Studio project files * Generate XCode project files * Much faster builds on Windows (on-par with Linux) * Seriously fast configure and building on embedded ... and many more. For more details see: http://blog.nirbheek.in/2016/05/gstreamer-and-meson-new-hope.html http://blog.nirbheek.in/2016/07/building-and-developing-gstreamer-using.html Building with Meson should work on both Linux and Windows, but may need a few more tweaks on other operating systems.
2016-04-03gdpdepay: Query for buffer allocator before using defaultChristoffer Stengren4-5/+67
https://bugzilla.gnome.org/show_bug.cgi?id=764361
2016-03-24bad: use new gst_element_class_add_static_pad_template()Vineeth TM2-8/+8
https://bugzilla.gnome.org/show_bug.cgi?id=763081
2016-01-28gdpdepay: Add ts-offset property to adjust buffer timestampsSebastian Dröge2-0/+62
2015-12-16gdppay: Fix buffer memory leakVineeth TM1-0/+2
outbuffer being allocated is not being pushed to queue for EOS event and hence should be freed. https://bugzilla.gnome.org/show_bug.cgi?id=759519
2015-12-15plugins-bad: Fix example pipelinesVineeth TM3-8/+8
rename gst-launch --> gst-launch-1.0 replace old elements with new elements(ffmpegcolorspace -> videoconvert, ffenc_** -> avenc_**) fix caps in examples https://bugzilla.gnome.org/show_bug.cgi?id=759432
2015-04-26Remove obsolete Android build cruftTim-Philipp Müller1-14/+0
This is not needed any longer.
2014-12-26gdppay: use public API for accessing stream header arrays in capsTim-Philipp Müller1-9/+14
Don't rely on core implementation details, which are private and may change. It's also not needed here, the performance impact is close to none. Also copy buffer before changing its metadata.
2014-12-26gdppay: refactor payloading code a littleTim-Philipp Müller3-179/+110
Get rid of some indirections and inefficiencies, just payload things directly which gives us more control over what memory is allocated where and how and makes things much simpler. In particular, we can now allocate the payload header plus the GstMemory to represent it in one go.
2014-12-26gdppay: refactor a littleTim-Philipp Müller4-212/+46
Get rid of now-useless packetizer struct and just call internal functions directly. Also remove version property which is now defunct, not least because we create the packetizer with the version in the init function before a version can be set.
2014-12-26gdppay: optimise payloading of buffers with multiple memoriesTim-Philipp Müller2-11/+80
Add function to calculate a payload CRC across multiple memories so we don't have to merge buffers with multiple memories just to calculate the CRC. Also make CRC calculation function static, since it's not used outside dataprotocol.h and move special-casing of length = 0 -> CRC = 0 into CRC function (from caller). Perhaps more importantly, since payload CRC is off by default: don't map buffer (and possibly merge memories in the process) if we are not going to use it to calculate a CRC anyway.
2014-12-26gdppay: dataprotocol: drop bogus constTim-Philipp Müller2-3/+3
Doesn't really make sense given that we map it and possibly merge memories and such.
2014-11-30gdppay: minor caps event payloading optimisationTim-Philipp Müller1-3/+4
Avoid creation of buffer we're just going to throw away two lines later anyway.
2014-11-30gdppay: fix some memory leaksTim-Philipp Müller1-10/+6
2014-07-22gdppay: remove obsolete codeThiago Santos1-13/+0
Buffers have no caps in 1.0
2014-07-22gdppay: put all sticky events in streamheaderThiago Santos2-154/+101
Use the sticky events to compose the streamheader as they are the ones that are persisted to config new pads linked. Instead of storing them ourselves rely on the pad storage that already orders it for us https://bugzilla.gnome.org/show_bug.cgi?id=732596
2014-06-09gdp: don't print already-freed stringTim-Philipp Müller1-1/+1
CID 1221987
2014-06-02gdp: Fail gracefully if event can't be parsedOlivier Crête1-0/+6
https://bugzilla.gnome.org/show_bug.cgi?id=731093
2014-01-31gdp: add DTS to headersThiago Santos2-0/+5
2014-01-31gdppay: update to 1.x realityThiago Santos2-18/+55
* stream-start-id is mandatory at the beginning, so add that to the gdp headers * caps must be sent before new segment, invert the order from legacy 0.10 code And fix the tests as a ref is now kept for those buffers that compose the header
2014-01-30gdppay: push the stream-start eventThiago Santos1-2/+3
instead of just swallowing upstream's stream-start into its payload, push it as elements expect a stream-start before data
2013-04-15gst: Add better support for static pluginsSebastian Dröge1-1/+1
2013-02-11gdp: actually log generic dataprotocol stuff to gdp categoryTim-Philipp Müller1-0/+3
2013-02-07gdppay: fix buffer leak when new caps are same as old capsTim 'mithro' Ansell1-1/+1
The leak occurs when you got a message with identical caps to the ones you already had. https://bugzilla.gnome.org/show_bug.cgi?id=693324
2012-11-04Fix FSF addressTim-Philipp Müller8-16/+16
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-09-11gdp: dump bytes into debug log using GST_MEMDUMPTim-Philipp Müller1-28/+5
Instead of home-grown solution.
2012-09-11update for new variable namesWim Taymans1-5/+5
2012-09-11gdppay: plug buffer leakMark Nauwelaerts1-0/+1
2012-09-11Use new gst_element_class_set_static_metadata()Tim-Philipp Müller2-2/+2
2012-09-11gst: Update for GST_PLUGIN_DEFINE() API changeSebastian Dröge1-1/+1
2012-09-11Improve buffer allocation of wrapped memoryWim Taymans1-12/+4
2012-09-11update for buffer api changeWim Taymans1-5/+5
2012-09-11update for buffer changesWim Taymans1-3/+3
2012-09-11update for memory api changesWim Taymans1-1/+1
2012-09-11update for new memory apiWim Taymans1-5/+5
2012-09-11gdppay: fixup for changed capsWim Taymans1-28/+4
Try to send the streamheader after the first buffer.
2012-09-11dataprotocol: don't define default CategoryWim Taymans1-1/+0
Since we now include this into the unit tests directly, don't define the default category macro because it conflicts with check.
2012-09-11update for HEADER flag changesWim Taymans2-17/+15
2012-09-11port to new map APIWim Taymans2-10/+9
2012-09-11gdp: move dataprotocol library into gdp plugin and make privateTim-Philipp Müller6-8/+13
We have removed things like protocol=gdp in the tcp elements in favour of explicit gdppay/depay elements, so there's no need to keep a public API and library for now. We can still add it back later. Someone needs to think hard about 0.11 and gdp anyway one of these days.
2012-09-11gdp: fix header filesWim Taymans1-32/+32
Ensure correct indentation and retab Make sure all structure have padding
2012-09-11gdp: rename buffer PREROLL -> LIVE flagWim Taymans1-1/+1
Rename the GST_BUFFER_FLAG_PREROLL to GST_BUFFER_FLAG_LIVE and give the new flag a meaning. The old PREROLL flag never had a clear meaning.
2012-09-11gdp: make new _buffer_allocate methodWim Taymans1-1/+2
Make a new method to allocate a buffer + memory that takes the allocator and the alignment as parameters. Provide a macro for the old method but prefer to use the new method to encourage plugins to negotiate the allocator properly.
2012-09-11gdp: Rework GstSegment handlingWim Taymans1-1/+1
Improve GstSegment, rename some fields. The idea is to have the GstSegment structure represent the timing structure of the buffers as they are generated by the source or demuxer element. gst_segment_set_seek() -> gst_segment_do_seek() Rename the NEWSEGMENT event to SEGMENT. Make parsing of the SEGMENT event into a GstSegment structure. Pass a GstSegment structure when making a new SEGMENT event. This allows us to pass the timing info directly to the next element. No accumulation is needed in the receiving element, all the info is inside the element. Remove gst_segment_set_newsegment(): This function as used to accumulate segments received from upstream, which is now not needed anymore because the segment event contains the complete timing information.
2012-09-11gdp: Hide the GstStructure in GstEventWim Taymans1-2/+4
Hide the GstStructure of the event in the implementation specific part so that we can change it. Add methods to check and make the event writable. Add a new method to get a writable GstStructure of the element. Avoid directly accising the event structure.