- 22 Feb, 2018 1 commit
-
-
Sebastian Dröge authored
We need a 64 bit integer, and previously the test failed because it was already created from longs in various cases (e.g. when reading from a GstStructure).
-
- 15 Feb, 2018 3 commits
-
-
Tim-Philipp Müller authored
-
Mathieu Duponchelle authored
Also rename misleading parameter (*kwargs -> *args) https://bugzilla.gnome.org/show_bug.cgi?id=793493
-
Tim-Philipp Müller authored
-
- 14 Feb, 2018 2 commits
-
-
Sebastian Dröge authored
-
Sebastian Dröge authored
-
- 23 Jan, 2018 1 commit
-
-
Sebastian Dröge authored
-
- 03 Aug, 2017 1 commit
-
-
Thibault Saunier authored
-
- 30 Jul, 2017 1 commit
-
-
Thibault Saunier authored
gcc warns about possibly unintialized use of it (even if it can't actually happen)
-
- 26 Jul, 2017 7 commits
-
-
Thibault Saunier authored
- Make sure to never have root folder in sys.path when running meson, as pythondetector won't be able to access gi._overridesdir - Generate a mesonconfig.py file that will be used by the testsuite to know where meson generated files, making `python -m unittest` working.
-
Thibault Saunier authored
-
Thibault Saunier authored
-
Thibault Saunier authored
No reason to have one file per type and it makes it more complicated to handle.
-
Thibault Saunier authored
We are making it behave like a dict, so we should provide the same kind of utilities.
-
Thibault Saunier authored
Otherwise we lose the information about what type of range it is, which is mandatory, especially when dealing with Structure and Caps.
-
Thibault Saunier authored
-
- 21 May, 2017 2 commits
-
-
Olivier Crête authored
They use the range() built-in type which is a Python 3 change. https://bugzilla.gnome.org/show_bug.cgi?id=782927
-
Olivier Crête authored
This is required by the new loader macro.
-
- 04 May, 2017 2 commits
-
-
Sebastian Dröge authored
-
Sebastian Dröge authored
-
- 27 Apr, 2017 1 commit
-
-
Sebastian Dröge authored
-
- 07 Apr, 2017 1 commit
-
-
Sebastian Dröge authored
-
- 27 Mar, 2017 2 commits
-
-
Nicolas Dufresne authored
This is needed to support matrix. Otherwise, getting a matrix would remove the rows envelopess, which would make the "cast" fails, since it would not know if the internal rows are ValueArray or ValueList. I think reading, modifying and setting back the matrix is an important use case.
-
Nicolas Dufresne authored
This reduces a lot the boiler plate all over. At the same time, use N instead of O when passing PyObject to fix the objects leaks.
-
- 24 Mar, 2017 3 commits
-
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
This patch adds overrides to support IntRange, Int64Range, DoubleRange, FractionRange, Array and List. For integer ranges, it maps this to python 'range'. Gst.IntRange() and Gst.Int64Range() are simple cast to let the underlying code know which GType to use. To set such range in python you will do: structure["range"] = Gst.IntRange(range(0,10,2))) Same for the 64 bit variant. And when you do: r = structure.get_value("range") A range will be returned directly, without the wrapper. For DoubleRange and FractionRange, there is no native support in python. So the usage will be: structure["range"] = Gst.DoubleRange(0,10.0) structure["range"] = Gst.FractionRange(Gst.Fraction(1/30), Gst.Fraction(1/5) When getting this value, Gst.DoubleRange and Gst.FractionRange class are returned. They both have start/stop members. The naming was taken from range type. For Array and List, both uses the native list type, though they can be constructed from any python sequence. So again, the class is just like a cast, to let it pick the right GType and python list are being returned. structure["list"] = Gst.ValueList([1,2,3,4]) structure["array"] = Gst.ValueArray([1,2,3,4) Using string and tuple could also work. Since Gst.ValueList/Array are sequence, you can convert one to the other with: list = Gst.ValueList([1,2,3,4]) array = Gst.ValueArray (list) https://bugzilla.gnome.org/show_bug.cgi?id=753754
-
Thibault Saunier authored
And make sure python detector did not fail https://bugzilla.gnome.org/show_bug.cgi?id=780369
-
- 24 Feb, 2017 4 commits
-
-
Sebastian Dröge authored
-
Sebastian Dröge authored
-
Sebastian Dröge authored
-
Sebastian Dröge authored
-
- 21 Feb, 2017 1 commit
-
-
Jan Schmidt authored
-
- 15 Feb, 2017 1 commit
-
-
Thibault Saunier authored
-
- 13 Jan, 2017 1 commit
-
-
Tim-Philipp Müller authored
Adjust meson requirement to same as used in other modules.
-
- 12 Jan, 2017 1 commit
-
-
Sebastian Dröge authored
-
- 16 Dec, 2016 1 commit
-
-
Tim-Philipp Müller authored
-
- 26 Nov, 2016 1 commit
-
-
- 04 Nov, 2016 2 commits
-
-
Thibault Saunier authored
As overrides_hack is being used as user sitecustomize script
-
Thibault Saunier authored
-
- 01 Nov, 2016 1 commit
-
-
Tim-Philipp Müller authored
-