Hello,
I've been experimenting with gstrtspserver in this repo: https://github.com/tmatth/gst-prototypes/tree/master/gstrtspserver I was wondering how I could pass an existing pipeline (src->encoder->payloader) to the GstRTSPMediaFactory instead of using gst_rtsp_media_factory_set_launch. Should I subclass GstRTSPMediaFactory and add a gst_rtsp_media_factory_set_bin method? Best, Tristan -- Tristan Matthews email: [hidden email] web: http://tristanswork.blogspot.com _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On 02/21/2011 07:49 PM, Tristan Matthews wrote:
> Hello, > > I've been experimenting with gstrtspserver in this repo: > https://github.com/tmatth/gst-prototypes/tree/master/gstrtspserver > > I was wondering how I could pass an existing pipeline > (src->encoder->payloader) to the GstRTSPMediaFactory instead of using > gst_rtsp_media_factory_set_launch. Should I subclass GstRTSPMediaFactory > and add a gst_rtsp_media_factory_set_bin method? You subclass GstRTSPMediaFactory and override the get_element method. Take a look at what the default implementation of that method does to get the idea. Wim > > Best, > Tristan > > > > -- > Tristan Matthews > email: [hidden email] <mailto:[hidden email]> > web: http://tristanswork.blogspot.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 |
2011/2/21 Wim Taymans <[hidden email]>
Ok, in that case I would just add a GstBin property in the subclass. Should i use the base class' lock when changing the bin? Or should the derived class have its own lock? -t
-- Tristan Matthews email: [hidden email] web: http://tristanswork.blogspot.com _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |