0006-fix-yuy2-format-unsupported.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From 652fa5837d0c54c4b850b6b2a2171dc94aab3c1f Mon Sep 17 00:00:00 2001
  2. From: sw.multimedia <sw.multimedia@starfivetech.com>
  3. Date: Thu, 13 Jan 2022 13:57:12 +0800
  4. Subject: [PATCH 06/10] libcamera: pixel formats supported should move to
  5. request pads
  6. ---
  7. src/gstreamer/gstlibcamerasrc.cpp | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp
  10. index 6329b01a..53247c3f 100644
  11. --- a/src/gstreamer/gstlibcamerasrc.cpp
  12. +++ b/src/gstreamer/gstlibcamerasrc.cpp
  13. @@ -151,12 +151,12 @@ G_DEFINE_TYPE_WITH_CODE(GstLibcameraSrc, gst_libcamera_src, GST_TYPE_ELEMENT,
  14. )
  15. /* For the simple case, we have a src pad that is always present. */
  16. GstStaticPadTemplate src_template = {
  17. - "src", GST_PAD_SRC, GST_PAD_ALWAYS, TEMPLATE_CAPS_SRC
  18. + "src", GST_PAD_SRC, GST_PAD_ALWAYS, TEMPLATE_CAPS
  19. };
  20. /* More pads can be requested in state < PAUSED */
  21. GstStaticPadTemplate request_src_template = {
  22. - "src_%u", GST_PAD_SRC, GST_PAD_REQUEST, TEMPLATE_CAPS
  23. + "src_%u", GST_PAD_SRC, GST_PAD_REQUEST, TEMPLATE_CAPS_SRC
  24. };
  25. void
  26. --
  27. 2.25.1