gst_element_post_message: bus is NULL

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gst_element_post_message: bus is NULL

mick_coracin
Hi,

I'm using a Playbin2 based pipeline with a custom Bin for source.

I would like to send a GST_MESSAGE_ELEMENT message from this bin to the application so that this bin can be reconfigured based on some user defined options.

I'm trying to use gst_element_post_message() function from my Bin, but I get a "No Bus" error. The bus of the element is NULL.

I understood that the bus should be inherited from the parent bin or pipeline, but it seems not to be the case here.

Do you have any idea why the bus is not set in this case? Where should it be initialized, and can I force it to be set?

Thanks and regards,
Michael
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_post_message: bus is NULL

kuppesh
please can u tell me how to  reconfigured based on some user defined options?
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_post_message: bus is NULL

Stefan Sauer
In reply to this post by mick_coracin
On 11/28/2011 11:10 AM, mick_coracin wrote:

> Hi,
>
> I'm using a Playbin2 based pipeline with a custom Bin for source.
>
> I would like to send a GST_MESSAGE_ELEMENT message from this bin to the
> application so that this bin can be reconfigured based on some user defined
> options.
>
> I'm trying to use gst_element_post_message() function from my Bin, but I get
> a "No Bus" error. The bus of the element is NULL.
Are you sure your bin is actually in use (aka plugged into the
pipeline)? It would be good to post a minimal standalone example that
shows the problem.

Stefan

>
> I understood that the bus should be inherited from the parent bin or
> pipeline, but it seems not to be the case here.
>
> Do you have any idea why the bus is not set in this case? Where should it be
> initialized, and can I force it to be set?
>
> Thanks and regards,
> Michael
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-element-post-message-bus-is-NULL-tp4114732p4114732.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel