[RFC] provide a bin to GstRtspMediaFactory

Nicolas Dufresne nicolas at ndufresne.ca
Thu Dec 7 14:51:47 UTC 2017


Le jeudi 07 décembre 2017 à 14:33 +0100, Eloi Bail a écrit :
> > >
> > > 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.
> > 
> > 
> 
> Fine. But rtsp-media-factory does not provide a way to get/set the
> bin except with a "gst-launch" string.
> So how do I create the bin and other elements ? Should I subclass
> the  rtsp-media-factory to create the bin ?

When it gets more complicated like this, I do subclass the factory and
the media. I then get much better control, but more boiler plate code
of course.

regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171207/80710edc/attachment-0001.sig>


More information about the gstreamer-devel mailing list