- 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 1 commit
-
-
Mathieu Duponchelle authored
Also rename misleading parameter (*kwargs -> *args) https://bugzilla.gnome.org/show_bug.cgi?id=793493
-
- 26 Jul, 2017 4 commits
-
-
Thibault Saunier authored
-
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 1 commit
-
-
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
-
- 24 Mar, 2017 1 commit
-
-
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
-
- 08 Nov, 2015 2 commits
-
-
Mark Nauwelaerts authored
-
Mark Nauwelaerts authored
-
- 26 Oct, 2015 1 commit
-
-
- 24 Apr, 2015 3 commits
-
-
Thibault Saunier authored
Python2 core checks that the first argument of a method is of the type of the object if it does not have any info about the method, so when using Gst not initialized it raiser a TypeError and not a Gst.NotInitialized as expected. + And fix a typo
-
Thibault Saunier authored
Fix regression from https://bugzilla.gnome.org/show_bug.cgi?id=746329
-
Thibault Saunier authored
Summary: And throw an exception if the user tries to call any Gst API without initializing gst. https://bugzilla.gnome.org/show_bug.cgi?id=747555 Reviewers: Mathieu_Du Differential Revision: http://phabricator.freedesktop.org/D87
-
- 19 Mar, 2015 1 commit
-
-
Thibault Saunier authored
Summary: We know that the bindings will get an extra ref but we know that it is not actually needed, so we are safe to decrease the refcount by one in that particular context making sure we give PyGI its ref back when we are done. Reviewers: Mathieu_Du Differential Revision: http://phabricator.freedesktop.org/D41 https://bugzilla.gnome.org/show_bug.cgi?id=746329
-
- 06 Jun, 2014 1 commit
-
-
Thibault Saunier authored
Otherwize we will get 2 time acces to the element in it, which does not make much sense. The _full variant can still be used.
-
- 22 May, 2014 1 commit
- 01 Apr, 2014 2 commits
-
-
Lubosz Sarnecki authored
Python 3 needs an __truediv__ operator method, used in GstFraction. see: http://legacy.python.org/dev/peps/pep-0238/ https://bugzilla.gnome.org/show_bug.cgi?id=726920
-
Thibault Saunier authored
We always expect it to be in the same directory and it fixes its import with python3 https://bugzilla.gnome.org/show_bug.cgi?id=726921
-
- 15 Mar, 2014 1 commit
-
-
Thibault Saunier authored
-
- 12 Dec, 2013 1 commit
-
-
Simon Farnsworth authored
I missed the zip code last time round - fix it. Thanks to Michael Schwendt in https://bugzilla.redhat.com/show_bug.cgi?id=1034341#c11 for pointing this out to me. Signed-off-by:
Simon Farnsworth <simon.farnsworth@onelan.co.uk> https://bugzilla.gnome.org/show_bug.cgi?id=720317
-
- 03 Dec, 2013 1 commit
-
-
Olivier Crête authored
-
- 26 Nov, 2013 1 commit
-
-
Simon Farnsworth authored
The FSF has moved since these files were created. Update the address, in order to keep packaging tools such as rpmlint quiet. Signed-off-by:
Simon Farnsworth <simon.farnsworth@onelan.co.uk> https://bugzilla.gnome.org/show_bug.cgi?id=715182
-
- 26 Aug, 2013 1 commit
-
-
Thibault Saunier authored
Letting the user choose when to initialize it himself
-
- 07 Dec, 2012 1 commit
-
-
Thibault Saunier authored
-
- 22 Nov, 2012 1 commit
-
-
Alessandro Decina authored
-
- 04 Nov, 2012 2 commits
-
-
Alessandro Decina authored
-
Alessandro Decina authored
...else gi will screw up the type hierarchy and GhostPad will inherit from the non-overridden Gst.Pad. Got it?
-
- 24 Oct, 2012 1 commit
-
-
Alessandro Decina authored
-
- 15 Oct, 2012 7 commits
-
-
Alessandro Decina authored
-
Alessandro Decina authored
-
Alessandro Decina authored
So you can use Gst.ElementFactory.make('fakesrc') instead of Gst.ElementFactory.make('fakesrc', None)
-
Alessandro Decina authored
-
Alessandro Decina authored
-
Alessandro Decina authored
So that you can use: for value in gst_iterator: ...
-
Alessandro Decina authored
-
- 27 Sep, 2012 1 commit
-
-
Mark Nauwelaerts authored
Also provide a default debug category for the binding glue code.
-
- 20 Aug, 2012 1 commit
-
-
Thibault Saunier authored
-
- 19 Aug, 2012 2 commits
-
-
Thibault Saunier authored
-
Thibault Saunier authored
-