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

Phonon, gstreamer-backend, cant seek in streams

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.4
    • (Inactive) Phonon
    • None

    Description

      Hi,
      I believe that I found a bug in phonon.
      You cant seek in any streams that you give to a Phonon::MediaSource,
      even if they actually is seekable. I've tried both deriving from QIODevice and Phonon::AbstractMediaStream, both with the same result.
      I've tracked down it to the gstreamer-plugin( class: 'StreamReader' ), it does not seem to respect if the stream is seekable or not, atleast I cant find anywhere there it check to see that.
      I also find a fix to it, by removing the 'streamSeekable' function and put it in the 'StreamInterface' class, it look like this:

      bool StreamInterface::streamSeekable() const
      {
      Q_ASSERT(d->connected);
      if (d->mediaSource.type() == MediaSource::Stream)

      { return d->mediaSource.stream()->streamSeekable(); }

      return false;
      }

      unfortunately I don't now how to summit it

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            visse Simon Palm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes