[gst-devel] issue on gstreamer control

Ronald S. Bultje rbultje at ronald.bitfreak.net
Mon Nov 7 14:26:40 CET 2005


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





More information about the gstreamer-devel mailing list