[gst-devel] issue on gstreamer control

rong wang rhong_wang at yahoo.com
Tue Nov 8 10:58:42 CET 2005


Ronald
   Thanks for the help, I tried your suggestion. the
problem is gone.
   However, this is another issue.
   When calling any mixer interface functions, it will
call 
  GstMixerClass *klass = GST_MIXER_GET_CLASS (mixer);
it gives me segmentation fault error.

  Do you any clues on this? It seems it is just a 
call macro G_TYPE_INSTANCE_GET_INTERFACE in the glib.

  I don't know where I should look at.

Thanks

Rong

--- "Ronald S. Bultje" <rbultje at ronald.bitfreak.net>
wrote:

> Hi,
> 
> On Mon, 2005-11-07 at 13:23 -0800, rong wang wrote:
> > 	osssink = gst_element_factory_make("osssink",
> > "play_audio");
> > 	ssert(osssink);
> >     mixer = GST_MIXER (osssink);
> [..]
> > (process:723): GStreamer-CRITICAL **:
> > gst_implements_interface_cast: assertion
> > `gst_element_implements_interface (GST_ELEMENT
> (from),
> > iface_type)' failed
> 
> gst_element_set_state (osssink, GST_STATE_READY);
> before the cast. The
> mixer only knows whether the hardware supports it
> when the device was
> opened, which happens in NULL->READY.
> 
> Cheers,
> Ronald
> 
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




More information about the gstreamer-devel mailing list