Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.7.2
-
None
-
Qt ver 4.7.2 - Configuration parameters:
./configure -embedded arm -xplatform qws/linux-mxc-g++ -prefix /usr/local/Trolltech/Qt-target-4.7.2 -qt-gfx-linuxfb -qt-kbd-tty -qt-mouse-tslib -little-endian -host-little-endian -phonon -phonon-backend -multimedia -audio-backend -verbose -force-pkg-config -glib -opensource -confirm-license -dbus
GStreamer ver 0.10.25
LTIB: Linux BSP 10.08.00 from FreescaleQt ver 4.7.2 - Configuration parameters: ./configure -embedded arm -xplatform qws/linux-mxc-g++ -prefix /usr/local/Trolltech/Qt-target-4.7.2 -qt-gfx-linuxfb -qt-kbd-tty -qt-mouse-tslib -little-endian -host-little-endian -phonon -phonon-backend -multimedia -audio-backend -verbose -force-pkg-config -glib -opensource -confirm-license -dbus GStreamer ver 0.10.25 LTIB: Linux BSP 10.08.00 from Freescale
Description
I have a problem with showing video on the mx28EVK using Qt phonon and gstreamer.
The application is terminated with the following console message:
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...
Segmentation fault
root@mx28evk ~$
The reason seems to be some kind of memory problem. The QSocketNotifier is a problem with file descriptor.
The error occurs when loading the video file. It occurs both when using H264 or MPEG4 video format. The size of the file does not affect the behaviour.
The following two versions of the code result in the error:
MainWindow::MainWindow()
{ qWarning() << "***start"; Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, this); qWarning() << "***load"; player->load(Phonon::MediaSource("file:///root/AAC-H264-MP4/test.mp4")); //This command causes the error qWarning() << "***play"; // player->play(); qWarning() << "***playing"; }MainWindow::MainWindow()
{ qWarning() << "***start"; Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this); Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(this); Phonon::createPath(mediaObject, videoWidget); mediaObject->setCurrentSource(Phonon::MediaSource("file:///root/AAC-H264-MP4/test.mp4")); //This command causes the error }I attach a file with the console output for the second code alternative.