Hello,

I have a project using the nitrogen6x-sabrelite board using Qt.

The QCamera did not work and I found that the culprit was that QCamera expects

v4l2src, but we only have mfw_v4lsrc on the sabrelite.


Using attached patch I got QCamera working.


it is a patch for meta-qt5/recipes-qt/qt5/recipes-qt/qtmultimedia, but since it 
it a freescale issue I'm posting the problem here.


Hope it might help someone else out there.


Embedded Software Ingenieur

Direkt: +41 44 315 63 66

--

MAKING VISIONS WORK.


bbv Software Services AG | Binzmühlestrasse 56 | CH-8050 Zürich

www.bbv.ch | [email protected]
diff --git a/src/plugins/gstreamer/camerabin/camerabinsession.cpp b/src/plugins/gstreamer/camerabin/camerabinsession.cpp
index ed7e7d4..61041ef 100644
--- a/src/plugins/gstreamer/camerabin/camerabinsession.cpp
+++ b/src/plugins/gstreamer/camerabin/camerabinsession.cpp
@@ -514,7 +514,7 @@ GstElement *CameraBinSession::buildCameraSource()
                 }
 
                 if (!m_videoSrc)
-                    m_videoSrc = gst_element_factory_make("v4l2src", "camera_source");
+                    m_videoSrc = gst_element_factory_make("mfw_v4lsrc", "camera_source");
 
                 g_object_set(G_OBJECT(m_cameraSrc), "video-source", m_videoSrc, NULL);
             }
diff --git a/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp b/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp
index 600a492..46ca6d8 100644
--- a/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp
+++ b/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp
@@ -59,7 +59,7 @@ QGstreamerV4L2Input::~QGstreamerV4L2Input()
 
 GstElement *QGstreamerV4L2Input::buildElement()
 {
-    GstElement *camera = gst_element_factory_make("v4l2src", "camera_source");
+    GstElement *camera = gst_element_factory_make("mfw_v4lsrc", "camera_source");
     if (camera && !m_device.isEmpty() )
         g_object_set(G_OBJECT(camera), "device", m_device.constData(), NULL);
 
-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to