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

Bad type for GstURIDecodeBin property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.5.8, 6.8.1, 6.9.0 FF
    • 6.7.2
    • Multimedia
    • None
    • iMX6 ARM (32 bit)
      GStreamer 1.24.6
    • Linux/Yocto
    • 7861cc83c (dev), b167a4b24 (6.8), 13c429a24 (6.7), 730f40ec6 (tqtc/lts-6.5)
    • Multimedia wk 35-38, Multimedia wk 39-40

      Using qtmultimedia to play a video results in

       

      (qml:948): GLib-GObject-CRITICAL **: 13:24:31.606: g_object_set_is_valid_property: object class 'GstURIDecodeBin' has no property named '\xa4\u000b;\x9dhD^\u00024\u000c;\x9d(8\xe0\x9d'               

      like messages.

      This is caused by

          constexpr int mb = 1024 * 1024;
          decoder.set("ring-buffer-max-size", 2 * mb);

      in QGstreamerMediaPlayer::setMedia

      This property is a 64 bit type:

       

      # gst-inspect-1.0 uridecodebin
        ring-buffer-max-size: Max. amount of data in the ring buffer (bytes, 0 = ring buffer disabled)
                              flags: readable, writable
                              Unsigned Integer64. Range: 0 - 4294967295 Default: 0 
      

      (gstreamer 1.22 + 1.24)

       

      A

      index 25751ee40..5cbef27f8 100644
      --- a/src/plugins/multimedia/gstreamer/common/qgstreamermediaplayer.cpp
      +++ b/src/plugins/multimedia/gstreamer/common/qgstreamermediaplayer.cpp
      @@ -1039,7 +1039,7 @@ void QGstreamerMediaPlayer::setMedia(const QUrl &content, QIODevice *stream)
       
           decoder.set("use-buffering", true);
       
      -    constexpr int mb = 1024 * 1024;
      +    constexpr uint64_t mb = 1024 * 1024;
           decoder.set("ring-buffer-max-size", 2 * mb);
       
           updateBufferProgress(0.f); 

      fixes the warning.

       

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

            timblechmann tim blechmann
            ensc Enrico Scholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes