GNOME Bugzilla – Bug 304993
threading example code does not work
Last modified: 2005-08-26 00:15:02 UTC
Distribution/Version: gentoo I just downloaded and compiled gstreamer-0.8.10 and gst-plugins-0.8.8, and tried out the threading example code from the documentation, found on this page: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-threads-example.html when I try to play an ogg file with the threading example, I get the following output: $ ./threaded /tmp/ize.ogg (process:21892): GLib-GObject-WARNING **: invalid uninstantiatable type `gint' in cast to `GstRealPad' (process:21892): GLib-GObject-WARNING **: invalid uninstantiatable type `glong' in cast to `GstRealPad' (process:21892): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GstRealPad' (process:21892): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GstRealPad' (process:21892): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GstRealPad' Error in thread 0x80fe030: Internal GStreamer error: pad problem. File a bug. Have idle-func in thread 0x804f5e0 what is also strange, that the threading example inside the gstreamer tarball (gstreamer-0.8.10/examples/thread) doesn't do anything when I try to play a sound file with it (let that be .wav or whatever)
The example in gstreamer-0.8.10/examples/thread/ hasn't been updated for the 0.8 series. It has just had the old gstreamer 0.6 stuff uncommented to make it at least compile, it seems. So it's not surprising that that doesn't do anything :) The example from the Application Developer Manual should work though (and does for me). Does gst-launch-0.8 filesrc location=/tmp/foo.ogg ! decodebin ! alsasink work for you? You could also do: % gdb ./threaded (gdb) run --g-fatal-warnings (process:21892): GLib-GObject-WARNING **: invalid uninstantiatable type `gint' in cast to `GstRealPad' Aborting... Received SIGABRT in bla (gdb) bt .... (gdb) kill (gdb) quit to see where the warning is coming from. Might also be worth trying the just-released gst-plugins 0.8.9, maybe you're hitting some odd bug in decodebin that's been fixed. Cheers -Tim
with gst-plugins 0.8.9, all seems to work correctly...