Commit graph

79 commits

Author SHA1 Message Date
Olivier Crête e041ff697d sbc: Return hard error on allocation or mapping error
Also post a message on the bus in these cases.wpe: Emit load-progress messages

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1875>
2021-04-08 00:38:47 +00:00
Olivier Crête 98bd83484c sbc/ldac: Don't use GST_CAPS_NONE to mean NULL
The GST_CAPS_NONE macro actually returns a instance of
a empty caps.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1874>
2021-04-07 21:14:50 +00:00
Stéphane Cerveau c2f4524e32 sbc: allow per feature registration
Split plugin into features including
dynamic types which can be indiviually
registered during a static build.

More details here:

https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2038>
2021-03-23 14:19:17 +00:00
Tim-Philipp Müller f218ec2794 Remove autotools build system 2019-10-14 13:54:27 +01:00
Thibault Saunier 47a49f3381 docs: Build documentation with hotdoc 2019-05-13 17:00:00 -04:00
Nirbheek Chauhan b55dfb5313 Add feature options for almost all plugins
The only plugins remaining are those that haven't been ported to Meson
yet, and msdk. Also, the tests are still automagic.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 19:04:38 +05:30
Xavier Claessens 83d0623293 Meson: Generate pc file for all plugins in bad
https://bugzilla.gnome.org/show_bug.cgi?id=794568
2018-04-25 11:08:09 +01:00
Sebastian Dröge b41dd59061 sbcenc: Fix typo in docs 2017-09-05 10:56:24 +03:00
Nicolas Dufresne 4261692187 Remove plugin specific static build option
Static and dynamic plugins now have the same interface. The standard
--enable-static/--enable-shared toggle are sufficient.
2017-05-16 14:05:52 -04:00
Thibault Saunier 78022a6e0c docs: Port all docstring to gtk-doc markdown 2017-04-12 12:57:57 -03:00
Nirbheek Chauhan 42af2d66d8 Add support for Meson as alternative/parallel build system
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-08-20 11:35:54 +01:00
Vineeth TM 8cdfb13658 bad: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763081
2016-03-24 14:56:51 +02:00
Tim Sheridan 95a14fd470 sbc: sbcdec: Fix frame length calculation
SBC frame length calculation wasn't being rounded up to the nearest byte
(as specified in the A2DP 1.0 specification, section 12.9). This could
cause 'stereo' and 'joint stereo' mode SBC streams to have incorrectly
calculated frame lengths.

https://bugzilla.gnome.org/show_bug.cgi?id=742446
2016-01-12 21:45:05 +00:00
Thiago Santos 6517282af7 audioencoders: use template subset check for accept-caps
It is faster than doing a query that propagates downstream and
should be enough

Elements: faac, gsmenc, opusenc, sbcenc, voamrwbenc, adpcmenc, sirenenc
2015-08-17 10:07:54 -03:00
Thiago Santos 56b822f9f6 audiodecoders: use default pad accept-caps handling
Avoids useless check of downstream caps when handling an
accept-caps query

Elements: dtsdec, faad, gsmdec, mpg123audiodec, opusdec,
          sbcdec, adpcmdec, sirendec
2015-08-15 13:51:16 -03:00
Sebastian Rasmussen 4482ce3423 sbcenc: Unref output caps in error cases
gst_caps_intersect() returns a reference to a caps object which in
the normal case is consumed, but in error cases must be unreferenced.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734521
2014-08-11 15:32:28 +03:00
Aurélien Zanelli da601be78f sbcenc: Allow user to set channel-mode
Don't return error when channel-mode is already set, just check that it
is coherent with number of channels.

https://bugzilla.gnome.org/show_bug.cgi?id=726098
2014-03-12 09:06:33 +01:00
Sebastian Dröge c635cb233f sbcdec: Require caps to be set before any data processing 2013-12-05 12:05:30 +01:00
Sebastian Dröge e51cd4fe2f gst: Add better support for static plugins 2013-04-15 15:59:22 +02:00
Tim-Philipp Müller a028a05054 sbc: port encoder to GstAudioEncoder
https://bugzilla.gnome.org/show_bug.cgi?id=690582
2013-03-27 22:40:56 +00:00
Tim-Philipp Müller ca9daee444 sbc: port decoder to GstAudioDecoder
https://bugzilla.gnome.org/show_bug.cgi?id=690582
2013-03-27 22:40:56 +00:00
Tim-Philipp Müller fecddde2c2 sbc: import sbc decoder/encoder from bluez and port to 1.0
https://bugzilla.gnome.org/show_bug.cgi?id=690582
2013-03-27 22:40:56 +00:00
Tim-Philipp Müller 50643d6192 sbc: remove parser in favour of new GstBaseParse-based sbcparse in -good 2013-03-27 22:21:30 +00:00
Wim Taymans 91f4b15490 sbc: sbcdec: make decoder more performant
Use an adapter to accumulate input buffers.
Decode all input in one output buffer when possible to reduce the amount of push
operations.
2013-03-27 22:21:17 +00:00
Wim Taymans dcb57780ef sbc: sbcdec: skip the frame on decoding error 2013-03-27 22:21:17 +00:00
Wim Taymans a559bb7060 sbc: sbcdec: set DISCONT on outgoing buffers. 2013-03-27 22:21:17 +00:00
Wim Taymans beaeeafb4d sbc: sbcdec: handle DISCONT and timestamps
Reset state on discont.
Interpollate timestamps.
2013-03-27 22:21:17 +00:00
Arun Raghavan 32154c5ae6 sbc: audio: Make the sbcdec element copy buffer metadata
Makes sure we don't lose timestamps, etc.
2013-03-27 22:21:17 +00:00
Wim Taymans 7e65f96acb sbc: enc: sbc_get_frame_duration is in milliseconds 2013-03-27 22:21:17 +00:00
Wim Taymans 9581e704b6 sbc: dec: chain up to parent before downward state change 2013-03-27 22:21:17 +00:00
Arun Raghavan c6f6cc736f sbc: audio: Fix a leak in sbcdec 2013-03-27 22:21:17 +00:00
Arun Raghavan dace80cc41 sbc: audio: Initialise SBC data before use in sbcparse element 2013-03-27 22:21:17 +00:00
Anderson Lizardo 6979975963 sbc: Fix trivial coding style issues on pointer declarations and casting
Avoid using C++ style pointer declarations like "char* ptr", as most
BlueZ code uses "char *ptr".
2013-03-27 22:21:17 +00:00
Syam Sidhardhan 142a5fb637 sbc: audio: Fix newline before EOF 2013-03-27 22:21:17 +00:00
Lucas De Marchi b31ee7bffc sbc: Fix common misspelled words
Accounting of misspelled words, as detected by codespell:

acording      2
ancilliary    1
appropiate    1
atribute      1
cant          1
comming       2
gracefull     1
lenght        1
mispelled     1
occured       1
occurences    1
ocurred       3
prefered      1
presense      1
reponse       1
seperate      1
succesful     1
successully   1
sucessfull    1
sucessfully   1
2013-03-27 22:21:17 +00:00
Marcel Holtmann 5514d457a1 sbc: audio: Remove workaround for compiler warnings 2013-03-27 22:21:17 +00:00
Marcel Holtmann df140f7852 sbc: Add pragma based workaround for GStreamer warnings 2013-03-27 22:21:17 +00:00
Marcel Holtmann 1ddbdc3e7a sbc: Update copyright information 2013-03-27 22:21:16 +00:00
Luiz Augusto von Dentz d4fd8f3ecd sbc: Remove unused variable. 2013-03-27 22:21:16 +00:00
Luiz Augusto von Dentz c985a85cf2 sbc: Remove unused variable. 2013-03-27 22:21:16 +00:00
Marcel Holtmann db16c0332c sbc: Fix signed/unsigned comparison issue within GStreamer plugin 2013-03-27 22:21:16 +00:00
Siarhei Siamashka 3f994a84bb sbc: Use native byte order for audio in GStreamer and ALSA plugins
This fixes endianness inconsistency between default SBC
configuration and GStreamer/ALSA.
2013-03-27 22:21:16 +00:00
Marcel Holtmann a3bf74686a sbc: Update copyright information 2013-03-27 22:21:16 +00:00
Marcel Holtmann 54f6cd0218 sbc: First attempt in fixing compiler warnings (still needs cleanup) 2013-03-27 22:21:16 +00:00
Marcel Holtmann 57f6f2655d sbc: Assign variables after declarations 2013-03-27 22:21:16 +00:00
Johan Hedberg 7ae0c70682 sbc: More coding style fixes 2013-03-27 22:21:16 +00:00
Luiz Augusto von Dentz 266cfb11b4 sbc: Fix runtime warnings of gstreamer plugin. 2013-03-27 22:21:16 +00:00
Luiz Augusto von Dentz 834a9b193b sbc: Update gstreamer plugin to use new sbc API. 2013-03-27 22:21:16 +00:00
Luiz Augusto von Dentz ccf5d9ea7e sbc: Make use of parameters selected in alsa plugin and fix auto selection. 2013-03-27 22:21:16 +00:00
Marcel Holtmann 5be53d24ab sbc: Update copyright information 2013-03-27 22:21:16 +00:00