Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-141958

qgstreamervideosink.cpp:361:18: error: no match for ‘operator=’

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P0: Blocker P0: Blocker
    • None
    • 6.11.0 FF
    • Multimedia
    • None
    • Linux/X11

      /home/qt/work/qt/qtmultimedia/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp
      /home/qt/work/qt/qtmultimedia/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp: In member function ‘void TestNamespace::QGstreamerRelayVideoSink::updateGstContexts(TestNamespace::QRhi*)’:
      /home/qt/work/qt/qtmultimedia/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp:361:18: error: no match for ‘operator=’ (operand types are ‘TestNamespace::QUniqueGErrorHandle’ \{aka ‘TestNamespace::QUniqueHandle<TestNamespace::QGstImpl::QUniqueGErrorHandleTraits>’} and ‘<brace-enclosed initializer list>’)
        361 |         error = {};
            |                  ^
      In file included from /home/qt/work/install/include/QtCore/qtdeprecationmarkers.h:8,
                       from /home/qt/work/install/include/QtCore/qtcoreexports.h:9,
                       from /home/qt/work/install/include/QtCore/qtcoreglobal.h:14,
                       from /home/qt/work/install/include/QtCore/qglobal.h:24,
                       from /home/qt/work/install/include/QtCore/QtCore:4,
                       from /home/qt/work/install/include/QtConcurrent/QtConcurrentDepends:3,
                       from /home/qt/work/install/include/QtConcurrent/QtConcurrent:3,
                       from /home/qt/work/qt/qtmultimedia_build/src/plugins/multimedia/gstreamer/CMakeFiles/GstreamerMediaPluginImplPrivate.dir/cmake_pch.hxx:5,
                       from <command-line>:
      /home/qt/work/install/include/QtCore/6.11.0/QtCore/private/quniquehandle_p.h:224:5: note: candidate: ‘TestNamespace::QUniqueHandle<HandleTraits, Deleter>& TestNamespace::QUniqueHandle<HandleTraits, Deleter>::operator=(TestNamespace::QUniqueHandle<HandleTraits, Deleter>&&) [with HandleTraits = TestNamespace::QGstImpl::QUniqueGErrorHandleTraits; Deleter = TestNamespace::QtUniqueHandleTraits::DefaultDeleter<TestNamespace::QGstImpl::QUniqueGErrorHandleTraits>]’
        224 |     QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QUniqueHandle)
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/qt/work/install/include/QtCore/6.11.0/QtCore/private/quniquehandle_p.h:224:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘TestNamespace::QUniqueHandle<TestNamespace::QGstImpl::QUniqueGErrorHandleTraits>&&’
        224 |     QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QUniqueHandle)
            |     ^
      Sccache command failed, re-try calling build tool directly
      /home/qt/work/qt/qtmultimedia/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp: In member function ‘void TestNamespace::QGstreamerRelayVideoSink::updateGstContexts(TestNamespace::QRhi*)’:
      /home/qt/work/qt/qtmultimedia/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp:361:18: error: no match for ‘operator=’ (operand types are ‘TestNamespace::QUniqueGErrorHandle’ \{aka ‘TestNamespace::QUniqueHandle<TestNamespace::QGstImpl::QUniqueGErrorHandleTraits>’} and ‘<brace-enclosed initializer list>’)
        361 |         error = {};
            |                  ^
      In file included from /home/qt/work/install/include/QtCore/qtdeprecationmarkers.h:8,
                       from /home/qt/work/install/include/QtCore/qtcoreexports.h:9,
                       from /home/qt/work/install/include/QtCore/qtcoreglobal.h:14,
                       from /home/qt/work/install/include/QtCore/qglobal.h:24,
                       from /home/qt/work/install/include/QtCore/QtCore:4,
                       from /home/qt/work/install/include/QtConcurrent/QtConcurrentDepends:3,
                       from /home/qt/work/install/include/QtConcurrent/QtConcurrent:3,
                       from /home/qt/work/qt/qtmultimedia_build/src/plugins/multimedia/gstreamer/CMakeFiles/GstreamerMediaPluginImplPrivate.dir/cmake_pch.hxx:5,
                       from <command-line>:
      /home/qt/work/install/include/QtCore/6.11.0/QtCore/private/quniquehandle_p.h:224:5: note: candidate: ‘TestNamespace::QUniqueHandle<HandleTraits, Deleter>& TestNamespace::QUniqueHandle<HandleTraits, Deleter>::operator=(TestNamespace::QUniqueHandle<HandleTraits, Deleter>&&) [with HandleTraits = TestNamespace::QGstImpl::QUniqueGErrorHandleTraits; Deleter = TestNamespace::QtUniqueHandleTraits::DefaultDeleter<TestNamespace::QGstImpl::QUniqueGErrorHandleTraits>]’
        224 |     QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QUniqueHandle)
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/qt/work/install/include/QtCore/6.11.0/QtCore/private/quniquehandle_p.h:224:5: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘TestNamespace::QUniqueHandle<TestNamespace::QGstImpl::QUniqueGErrorHandleTraits>&&’
        224 |     QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QUniqueHandle)
            |     ^
      [397/494] sccache /usr/bin/g++ -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -
      
      

      Build log: https://testresults.qt.io/logs/qt/qtmultimedia/62d87a3f19cbaa9dea6ceda4e17a68a9208b65f9/LinuxUbuntu_22_04x86_64LinuxUbuntu_22_04x86_64GCCqtci-linux-Ubuntu-22.04-x86_64-51-d49865DocsGenerationV2_GenerateSBOM_Sccache_UseConfigure_VerifySBOM/bb6bfc4b1525162bb6610517e0c1070d6d53b5a3/build_1763091580/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtmultimedia/tasks/1763091568

      Tested changes (refs/builds/qtci/dev/1763091567):
      https://codereview.qt-project.org/c/qt/qtmultimedia/+/691000/3 Update dependencies on 'dev' in qt/qtmultimedia

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtmultimediateam Qt Multimedia Team
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes