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

QMediaMetaData::TrackNumber returns 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.5.0 FF
    • Multimedia
    • None
    • All

      Explanation:

      The tag with the key "track" can be in the form of "current/total".

      (Like described in avformat.h of the libav library)

      QMediaMetaData returns for these valid tags the value 0.

      Solution 1:

      Make QMediaMetaData:TrackNumber a QString instead of an int.

      Solution 2:

      Do something like:

      QString::fromUtf8(tag->value).split('/').at(0).toInt()

      Maybe somewhere near QFFmpegMetaData::addEntry...

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

            broved Bror Vedeld
            felsi Michael Felsberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes