Commit 03659dd1 authored by Snir Sheriber's avatar Snir Sheriber

gst-plugin: Try vp8 if plugin wasn't asked explicitly

It used to be the default behaviour but it was changed
with the following commit:

28616c7cSigned-off-by: Snir Sheriber's avatarSnir Sheriber <ssheribe@redhat.com>
Acked-by: Kevin Pouget's avatarKevin Pouget <kpouget@redhat.com>
parent 88973397
Pipeline #128632 passed with stage
in 2 minutes and 39 seconds
......@@ -524,6 +524,7 @@ SPICE_STREAMING_AGENT_PLUGIN(agent)
{
const std::string gst_prefix = "gst.";
auto options = agent->Options();
bool registered = false;
gst_init(nullptr, nullptr);
......@@ -537,8 +538,15 @@ SPICE_STREAMING_AGENT_PLUGIN(agent)
plugin->ParseOptions(agent->Options(), codec_name, value);
agent->Register(plugin);
registered = true;
}
}
if (!registered) {
auto plugin = std::make_shared<GstreamerPlugin>();
plugin->ParseOptions(agent->Options(), "vp8", "auto");
agent->Register(plugin);
}
return true;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment