You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've installed ldoce5viewer in CentOS7 and it works great, but there is a problem with the sound that I've fixed modifying the source code. It occurs when both Gstreamer 1.0 and Qt-Phonon are available. This is the case of CentOS7, because PyQt4-4.10.1-13.el7.x86_64 depends on phonon-backend-gstreamer.
The problem is at file ldoce5viewer/qtgui/utils/soundplayer.py. It tries several engines, including Gstreamer 1.0 and Qt-Phonon and finally uses Phonon. The problem is that when detecting Gstreamer 1.0, it run Gst.init(None). This causes a hang later in the line:
A quick workaround is to change the order of engines in create_soundplayer, to use GStreamer 1.0 instead of Phonon it both are available. But probably the real solution if moving Gst.init(None) to the init method of the GST 1.0 engine, but I don't know if the code of other platforms may be affected.
The text was updated successfully, but these errors were encountered:
chemaper
changed the title
problems when
problems when both GST 1.0 and Phonon are installed
Mar 15, 2016
Hi,
I've installed ldoce5viewer in CentOS7 and it works great, but there is a problem with the sound that I've fixed modifying the source code. It occurs when both Gstreamer 1.0 and Qt-Phonon are available. This is the case of CentOS7, because PyQt4-4.10.1-13.el7.x86_64 depends on phonon-backend-gstreamer.
The problem is at file ldoce5viewer/qtgui/utils/soundplayer.py. It tries several engines, including Gstreamer 1.0 and Qt-Phonon and finally uses Phonon. The problem is that when detecting Gstreamer 1.0, it run Gst.init(None). This causes a hang later in the line:
self._player = Phonon.createPlayer(Phonon.NoCategory)
And the following messages are printed:
/usr/lib/python2.7/site-packages/ldoce5viewer/qtgui/utils/soundplayer.py:220: Warning: cannot register existing type 'GstObject' self._player = Phonon.createPlayer(Phonon.NoCategory) /usr/lib/python2.7/site-packages/ldoce5viewer/qtgui/utils/soundplayer.py:220: Warning: g_once_init_leave: assertion 'result != 0' failed self._player = Phonon.createPlayer(Phonon.NoCategory) /usr/lib/python2.7/site-packages/ldoce5viewer/qtgui/utils/soundplayer.py:220: Warning: g_type_register_static: assertion 'parent_type > 0' failed self._player = Phonon.createPlayer(Phonon.NoCategory) /usr/lib/python2.7/site-packages/ldoce5viewer/qtgui/utils/soundplayer.py:220: Warning: g_object_newv: assertion 'G_TYPE_IS_OBJECT (object_type)' failed self._player = Phonon.createPlayer(Phonon.NoCategory)
A quick workaround is to change the order of engines in create_soundplayer, to use GStreamer 1.0 instead of Phonon it both are available. But probably the real solution if moving Gst.init(None) to the init method of the GST 1.0 engine, but I don't know if the code of other platforms may be affected.
The text was updated successfully, but these errors were encountered: