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

QMediaPlayer::setMedia segfault with url to mp3 file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.2.1
    • Multimedia
    • None
    • ArchLinux x64, Qt 5.2.1

      uname -a
      Linux citadel 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014 x86_64 GNU/Linux

    Description

      Following source code causes segmentation fault on my Linux system, but it works well on Windows 7

      #include <QCoreApplication>
      #include <QMediaPlayer>
      #include <QDebug>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
          QMediaPlayer player;
          player.setMedia(QMediaContent(QUrl("http://www.paul.sladen.org/pronunciation/torvalds-says-linux.mp3")));
          player.play();
          return a.exec();
      }
      

      Crash is in setMedia method call.

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            flareguner Georgy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes