What is the detailed process of connecting two pads in this scenario?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

What is the detailed process of connecting two pads in this scenario?

nosati_shtakor
I have the following case:

A->B->C

Element 'B' is my audio decoder and i have 'handle_frame' handler implemented on it.

At the end of that handle_frame function I call gst_audio_decoder_finish_frame(). That call will trigger the 'query' handler implemented on the sink 'C'.

At the moment I (assume incorrectly) handle the 'query' request in a way that I prepare everything on the sink 'C' like this is a connection request, not just a query. What I would like to do is to simply check in 'query' handler if 'C' sink can accept the type queried for and return. Then I would like to receive that information in the element B and if it was successful, I want to issue some sort of "connect_requst", but I don't know enough about GStreamer's internals to do that.

Can somebody help me with that?

Sent from the GStreamer-devel mailing list archive at Nabble.com.

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