[RFC] provide a bin to GstRtspMediaFactory

Sebastian Dröge sebastian at centricular.com
Wed Dec 6 17:15:09 UTC 2017


On Wed, 2017-12-06 at 17:52 +0100, Eloi Bail wrote:
> 
> This element is created by gst_parse_launch_full with
> GST_PARSE_FLAG_PLACE_IN_BIN.
> Should I then modify grammar.tab.c to add my custom flag
> GST_PARSE_FLAG_PLACE_IN_MY_BIN which would return a "MyBin" instead
> of "GstBin" ?

Don't use gst_parse_launch() but create the bin and other elements
normally. There's no need to change any GStreamer code.

> > A better approach might be to place the motion detector in front of the
> > annotation element, so that it can be to information directly on its
> > output buffers (GstMeta e.g.) and let the annotation element directly
> > read it from there instead of having yet another way of communication.
> 
> So then the motion detector would act as a passthrough with my custom
> metadata ? 

Yes

> > Alternatively you could also let the motion detection element know
> > about the annotation element and have them communicate via direct
> > function calls.
> 
> Yes but I would need to implement my own inter-thread communication

No, you can just do normal function calls. And as usual with threads,
you have to make sure your code is thread-safe. The messages wouldn't
help with that either.

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171206/262a6e3f/attachment.sig>


More information about the gstreamer-devel mailing list