mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:39:34 +00:00
winegstreamer: Forbid vaapidecodebin when looking for a specific element.
This will eventually fallback to vaapih264dec and similar decoders if VA-API plugins are indeed available.
This commit is contained in:
parent
4a2cebad30
commit
0c760ef70d
|
@ -101,6 +101,16 @@ GstElement *find_element(GstElementFactoryListType type, GstCaps *src_caps, GstC
|
|||
for (tmp = transforms; tmp != NULL && element == NULL; tmp = tmp->next)
|
||||
{
|
||||
name = gst_plugin_feature_get_name(GST_PLUGIN_FEATURE(tmp->data));
|
||||
|
||||
if (!strcmp(name, "vaapidecodebin"))
|
||||
{
|
||||
/* vaapidecodebin adds asynchronicity which breaks wg_transform synchronous drain / flush
|
||||
* requirements. Ignore it and use VA-API decoders directly instead.
|
||||
*/
|
||||
GST_WARNING("Ignoring vaapidecodebin decoder.");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(element = gst_element_factory_create(GST_ELEMENT_FACTORY(tmp->data), NULL)))
|
||||
GST_WARNING("Failed to create %s element.", name);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue