Commit ced86356 authored by Snir Sheriber's avatar Snir Sheriber
Browse files

gst-plugin: Allow ANY memory type to pass from converter to encoder



e.g. VASurface memory type can be used now.
Signed-off-by: Snir Sheriber's avatarSnir Sheriber <ssheribe@redhat.com>
Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
parent e1f112c5
......@@ -252,7 +252,7 @@ void GstreamerFrameCapture::pipeline_init(const GstreamerEncoderSettings &settin
gst_bin_add(bin, encoder);
gst_bin_add(bin, sink);
GstCapsUPtr caps(gst_caps_from_string("video/x-raw"));
GstCapsUPtr caps(gst_caps_from_string("video/x-raw(ANY)"));
link = gst_element_link(capture.get(), convert.get()) &&
gst_element_link_filtered(convert.get(), encoder.get(), caps.get()) &&
gst_element_link_filtered(encoder.get(), sink.get(), sink_caps.get());
......
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