After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 304993 - threading example code does not work
threading example code does not work
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.10
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-21 13:26 UTC by Akos Maroy
Modified: 2005-08-26 00:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Akos Maroy 2005-05-21 13:26:07 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)
Comment 1 Tim-Philipp Müller 2005-05-27 11:48:35 UTC
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
Comment 2 Akos Maroy 2005-05-27 13:26:43 UTC
with gst-plugins 0.8.9, all seems to work correctly...