Commit graph

6 commits

Author SHA1 Message Date
Sebastian Dröge 1cecb1c8ab Add copyright header 2018-11-26 12:57:46 +01:00
Sebastian Dröge 1b7c8868a9 Store encoding profiles inside the container builder as a Vec 2018-11-26 12:57:46 +01:00
Sebastian Dröge 2df623c09a Remove unnecessary mut 2018-11-26 12:57:46 +01:00
Thiago Santos e09f23e689 More encoding_profile binding improvements
- enable is_equal function again (unsure why it was disabled)
- remove restriction-caps property, encoding-profile objects are
immutable
- remove cast need by using IsA<EncodingProfile> in parameters and
returning the correct type of encodingprofile subclass from the build()
functions. It used a internal hack for storing those IsA objects in
order to keep the API clean and ready to be used, this should be sorted
out as soon as we figure out how to store them in the buidlers.
- encodebin example: remove Result error propagation when it is caused
by programming mistakes. A panic will happen in those cases.
- run rustfmt
2018-11-26 12:57:46 +01:00
Thiago Santos 6cb7f602d1 encoding_profile: set_restriction is transfer-full not transfer-none
Avoid refcounting mistakes by using the right converting functions
before calling the ffi layer functions
2018-11-26 12:57:46 +01:00
Thiago Santos 15da7bca0e EncodingProfile: remove setters and constructors, use builders
Provide builders for the EncodingProfile so that the created objects are
imutable and can have the Send and Sync traits
2018-11-26 12:57:46 +01:00