Commit graph

24 commits

Author SHA1 Message Date
Guillaume Desmottes b8c78c87d2 encodebin: fix caps leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=776797
2017-01-30 14:17:42 +02:00
Thibault Saunier 03e263b92f tests: Fix build 2016-12-19 15:20:35 -03:00
Thibault Saunier c8ea302e57 encodebin: Fallback to other profile if we fail with one
In some case we might have EncodingProfile that will be defined
in a way that, for example if a Preset is not present, another
profile for that stream should be used.

A test is added showing the feature.

https://bugzilla.gnome.org/show_bug.cgi?id=776188
2016-12-19 10:13:23 -03:00
Thiago Santos c9904fb639 encodebin: delay missing encoder error as passthrough is still possible
Set up a fakesink with a pad probe to replace the missing encoder to detect
if encoding was really required and only error out in this case. Otherwise
just let passthrough branch work.

This delays the error posting from the set_state function to when buffers
are really flowing. Unit test updated accordingly

https://bugzilla.gnome.org/show_bug.cgi?id=650652
2014-08-11 10:30:58 -03:00
Sebastian Dröge 1822a6b31c encodebin: Fix memory leak in test 2014-04-15 13:48:46 +02:00
Stefan Sauer 2337311216 encodebin: simplify tests
Also use the profile helper for the ogg profile here.
2014-02-18 20:52:11 +01:00
Stefan Sauer 465dfe4920 encodebin: refactor tests
Add a new test to demo how to get missing plugin message.
Split some tests that unneccesarily munge unrelated checks into one test.
2014-02-16 22:16:17 +01:00
Edward Hervey b3d94bd0e4 encodebin: Add action signal to get pad for a given profile
This allows getting a pad for a specific encoding profile, which can
be useful when there are several stream profiles of the same type.

Also update the encodebin unit tests so that we check that the returned
pad has the right caps.

https://bugzilla.gnome.org/show_bug.cgi?id=689845
2013-03-31 12:02:05 +02:00
Tim-Philipp Müller ed87e77baa tests: fix encodebin unit test on 32-bit systems
Fixes critical warning on x86:
g_object_set_valist: object class `GstOggMux' has no property named `testingoggmux'
2013-02-16 23:55:57 +00:00
Thibault Saunier e79f0e801e encodebing: Use the preset_name as the factory name and preset as the name of the preset
The naming is not perfect, but at least we can keep the exact same behaviour as
before.
2012-12-17 10:12:11 -03:00
Thibault Saunier 12aef5f47d tests: encodebin: Properly rename new preset test 2012-12-05 17:53:19 -03:00
Thibault Saunier 7358cba017 encodebin: Make use of the new preset_name when setting a preset
The behaviour is sensibly changed here. Instead of purely falling when a
preset is set on the #GstEncodingProfile, we now make sure that the
element that is plugged corresponds to the one specified as preset. Then,
if we have a preset_name, we use it, if it fails, we fail (we might rather
just keep working even without setting the element properties?)

 + Add tests that it behave correctly
2012-12-05 17:48:38 -03:00
Tim-Philipp Müller 5f59b4f7ee Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 23:05:09 +00:00
Wim Taymans e9c23ca4fb tests: small cleanup 2012-01-02 18:31:05 +01:00
Wim Taymans 8417a7103a tests: fix compilation 2011-10-27 17:33:06 +02:00
Wim Taymans d3f6a95cff tests: update for new audio caps 2011-09-29 13:46:36 +02:00
Sebastian Dröge 86f679aaac encodebin: Unref encoding profiles after usage in the test 2011-04-14 13:15:08 +02:00
Sebastian Dröge 10e0b85a56 encodebin: Release pads after setting the state to NULL in the unit test
See bug #647756.
2011-04-14 12:55:00 +02:00
Sebastian Dröge f1f0625e97 encodebin: Requesting a pad again now gives a g_return_val_if_fail()
Before the behaviour was undefined and implemented differently by elements,
now core checks for this (and other problems) and returns NULL and an assertion.
2011-03-29 15:42:50 +02:00
Thiago Santos 40eaac6191 tests: encodebin: Add reuse test case
Adds a test case to check if encodebin can be reused

https://bugzilla.gnome.org/show_bug.cgi?id=644416
2011-03-10 15:12:01 -03:00
Sebastian Dröge eb91fe7162 encodebin: Fix double unref in unit test 2011-02-24 21:00:34 +01:00
Sebastian Dröge dc87e8698e encodebin: Fix memory leaks related to request pads
Request pads have to be released by the caller and must be
unreffed after releasing them.
2011-02-24 16:02:50 +01:00
Edward Hervey 949595a7a3 tests: Update container-less profile checks 2010-12-21 13:23:34 +01:00
Edward Hervey 8a3b45aa1f gst: New encoding plugin
https://bugzilla.gnome.org/show_bug.cgi?id=627476
2010-12-15 11:54:32 +01:00