GNOME Bugzilla – Bug 307517
shout2send element cannot be accessed through get_byname
Last modified: 2005-06-14 13:01:55 UTC
Distribution/Version: Mandrake 10.2 amd64 and Debian sid using the following pipeline : 'gnomevfssrc ! typefind ! decodebin ! audioconvert ! audioscale ! vorbisenc ! shout2send name=shout2send mount=test.ogg', the last element cannot be accessed with get_by_name. To test, use the following python code : import gst bin = gst.parse_launch(' gnomevfssrc name=gnomevfssrc ! ' + ' typefind name=typefind ! ' + ' decodebin name=decodebin ! ' + ' audioconvert name=audioconvert ! ' + ' audioscale name=audioscale ! ' + ' vorbisenc name=vorbisenc ! ' + ' shout2send name=shout2send mount=test.ogg') for i in bin.get_list(): print i print i.get_property('name') print bin.get_by_name(i.get_property('name')) print "" output show that bin.get_by_name does not find shout2send. $ python /tmp/test.py <__main__.GstGnomeVFSSrc object (GstGnomeVFSSrc) at 0x2aaaac74dc30> gnomevfssrc <__main__.GstGnomeVFSSrc object (GstGnomeVFSSrc) at 0x2aaaac74dc30> <__main__.GstTypeFindElement object (GstTypeFindElement) at 0x2aaaac74dc80> typefind <__main__.GstTypeFindElement object (GstTypeFindElement) at 0x2aaaac74dc80> <__main__.GstDecodeBin object (GstDecodeBin) at 0x2aaaac74dcd0> decodebin <__main__.GstDecodeBin object (GstDecodeBin) at 0x2aaaac74dcd0> <__main__.GstAudioConvert object (GstAudioConvert) at 0x2aaaac74dd20> audioconvert <__main__.GstAudioConvert object (GstAudioConvert) at 0x2aaaac74dd20> <__main__.Audioscale object (Audioscale) at 0x2aaaac74dd70> audioscale <__main__.Audioscale object (Audioscale) at 0x2aaaac74dd70> <__main__.OggVorbisEnc object (OggVorbisEnc) at 0x2aaaac74ddc0> vorbisenc <__main__.OggVorbisEnc object (OggVorbisEnc) at 0x2aaaac74ddc0> <__main__.GstShout2send object (GstShout2send) at 0x2aaaac74de10> shout2send None If I use fakesink instead of shout2send, it works as expected. It seems that shout2send already use a name property for the name of the stream, transmitted to icecast.
Fixed in 0.8.9 (according to zaheer).