Problem with quickly.widgets.media_player_box

Asked by Chris Schmidt

I followed the tutorial on
http://developer.ubuntu.com/resources/app-developer-cookbook/multimedia/creating-a-simple-media-player/

With
    from quickly.widgets.media_player_box import MediaPlayerBox
and then
    self.player = MediaPlayerBox(True)
I got the error

(.:7599): GStreamer-CRITICAL **: gst_element_factory_make: assertion `gst_is_initialized ()' failed
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/quickly/widgets/media_player_box.py", line 119, in __init__
    bus = self.playbin.get_bus()
AttributeError: 'NoneType' object has no attribute 'get_bus'

Is this a bug or is there a solution for it?
(I am using Ubuntu 12.04)

Question information

Language:
English Edit question
Status:
Expired
For:
Quickly Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jo Jaeyoung (jaeyoungse) said :
#2

Seems it can be solved by initializing Gst first. See Bug #1010360

Revision history for this message
Chris Schmidt (nadt) said :
#3

Thanks, Jo Jaeyoung. The solution worked for me :-)