[gst-devel] Ossaudio can't work after porting gst-plugin-good-0.10.2 to arm platform, why?

zs p paaa1976 at yahoo.com.cn
Thu Mar 30 02:13:01 CEST 2006


I have ported gstreamer-0.10.3 to arm platform, and it
seem to work well. Then I try to port
gst-plugin-base-0.10.3, my arm platform don't provide
x11 lib, so I have to make install some plugins
individually. I installed all audio plugins in
gst-plugin-base-0.10.3, and all of those can be loaded
through "gst-inspect ".
Then I try to port gst-plugin-good-0.10.2 because I
need osssink  to playback audio. I cross compile
gst-plugin-good-0.10.2  , and install only ossaudio by
running following command:
$cd sys/oss/
$make install

but when I inspect osssink on arm platform:
# gst-inspect osssink
 
ERROR: Caught a segmentation fault while loading
plugin file:
/lib/gstreamer-0.10/libgstossaudio.so
 
Please either:
- remove it and restart.
- run with --gst-disable-segtrap and debug.

So I have to modify "plugin_init()" in "tossaudio.c"
to not register "osssrc", and modify "gstosssink.c" to
replace "GST_TYPE_AUDIO_SINK" with "GST_TYPE_ELEMENT"
in functions "gst_oss_sink_get_type()" and
"gst_oss_sink_class_init (GstOssSinkClass * klass)".
Now osssink can be inspected. But it can't work well:
# gst-launch filesrc location=sample.mp3 ! flump3dec !
osssink
 
(gst-launch-0.10:238): GStreamer-WARNING **: Element
osssink0 has an ALWAYS template sink, but no pad of
the same name
WARNING: erroneous pipeline: could not link flump3dec0
to osssink0

I think that replacing "GST_TYPE_AUDIO_SINK" with
"GST_TYPE_ELEMENT" in functions
"gst_oss_sink_get_type()" and "gst_oss_sink_class_init
(GstOssSinkClass * klass)" lead to this issues. 

Does ossaudio plugin depend on anything else?
What should I do?

thank you in advance.


	

	
		
___________________________________________________________ 
雅虎1G免费邮箱百分百防垃圾信 
http://cn.mail.yahoo.com/




More information about the gstreamer-devel mailing list