mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
validate: Use decodebin3/uridecodebin3 when specified
Set the USE_PLAYBIN3 environment variable to use those elements instead of legacy ones.
This commit is contained in:
parent
98e31f52ef
commit
b77797da4b
1 changed files with 12 additions and 4 deletions
|
@ -237,8 +237,12 @@ class GstValidatePipelineTestsGenerator(GstValidateTestsGenerator):
|
|||
class GstValidatePlaybinTestsGenerator(GstValidatePipelineTestsGenerator):
|
||||
|
||||
def __init__(self, test_manager):
|
||||
if os.getenv("USE_PLAYBIN3") is None:
|
||||
GstValidatePipelineTestsGenerator.__init__(
|
||||
self, "playback", test_manager, "playbin")
|
||||
else:
|
||||
GstValidatePipelineTestsGenerator.__init__(
|
||||
self, "playback", test_manager, "playbin3")
|
||||
|
||||
def populate_tests(self, uri_minfo_special_scenarios, scenarios):
|
||||
for uri, minfo, special_scenarios in uri_minfo_special_scenarios:
|
||||
|
@ -315,8 +319,12 @@ class GstValidateMixerTestsGenerator(GstValidatePipelineTestsGenerator):
|
|||
name = ""
|
||||
for nsource in range(self.num_sources):
|
||||
uri, minfo = wanted_ressources[i + nsource]
|
||||
if os.getenv("USE_PLAYBIN3") is None:
|
||||
srcs.append(
|
||||
"uridecodebin uri=%s ! %s" % (uri, self.converter))
|
||||
else:
|
||||
srcs.append(
|
||||
"uridecodebin3 uri=%s ! %s" % (uri, self.converter))
|
||||
fname = os.path.basename(uri).replace(".", "_")
|
||||
if not name:
|
||||
name = fname
|
||||
|
|
Loading…
Reference in a new issue