Commit 7c323857 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't set random caps

It crashes sometimes, let gstreamer choose the right ones
parent 6ceec6cd
......@@ -302,8 +302,6 @@ bool WebcamControl::playDevice(Device *device)
gst_element_set_state(GST_ELEMENT(, GST_STATE_READY);
auto caps = gst_caps_from_string("video/x-raw, framerate=(fraction){30/1, 15/1}, width=(int)640, height=(int)480, format=(string){YUY2}, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive");
g_object_set(, "viewfinder-caps", caps, nullptr);
gst_element_set_state(GST_ELEMENT(, GST_STATE_PLAYING);
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