[gstreamer-bugs] [Bug 369281] Initialization assertion failed, use g_type_init prior to this function

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Nov 3 02:26:34 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=369281

  GStreamer | gstreamer (core) | Ver: 0.10.10


Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #75919|0                           |1
        is obsolete|                            |
  Attachment #75920|0                           |1
        is obsolete|                            |




------- Comment #8 from Tim-Philipp Müller  2006-11-03 10:25 UTC -------
Created an attachment (id=75923)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=75923&action=view)
cleaned up working source code

The log indicates that gst_init() has completed successfully (otherwise you'd
get lots of other output and things like GST_IS_ELEMENT would file different).

Your program source code is a bit ... messy, and it won't work like that, since
decodebin has dynamic pads, and you also need an audioconvert and audioresample
element before the audiosink; and you need to wait after setting the state to
PLAYING.

I attach a modified version of your source code that should at least play back
mp3s (if you have all the elements required installed, you need to add the
error checking for that yourself).

I recommend you subscribe to the gstreamer-devel mailing list and direct any
application development questions there, bugzilla isn't really the right place
for this. Thanks!


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list