0001-Fix-build-with-GStreamer-1.16.0.patch 739 B

123456789101112131415161718192021222324252627
  1. From 7ab59a92a0d129b930a343c7c276518994fb6832 Mon Sep 17 00:00:00 2001
  2. From: Alexander Akulich <akulichalexander@gmail.com>
  3. Date: Sun, 7 Jul 2019 03:17:35 +0300
  4. Subject: [PATCH] Fix build with GStreamer 1.16.0
  5. ---
  6. src/QGst/caps.cpp | 3 ++-
  7. 1 file changed, 2 insertions(+), 1 deletion(-)
  8. diff --git a/src/QGst/caps.cpp b/src/QGst/caps.cpp
  9. index 3824d82..a15b701 100644
  10. --- a/src/QGst/caps.cpp
  11. +++ b/src/QGst/caps.cpp
  12. @@ -54,7 +54,8 @@ QString Caps::toString() const
  13. void Caps::append(const CapsPtr & caps2)
  14. {
  15. - gst_caps_append(object<GstCaps>(), gst_caps_copy(caps2));
  16. + const GstCaps * caps2ptr = caps2;
  17. + gst_caps_append(object<GstCaps>(), gst_caps_copy(caps2ptr));
  18. }
  19. CapsPtr Caps::merge(CapsPtr & caps2)
  20. --
  21. 2.21.0