2011/2/21 Wim Taymans <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 02/21/2011 07:49 PM, Tristan Matthews wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
I've been experimenting with gstrtspserver in this repo:<br>
<a href="https://github.com/tmatth/gst-prototypes/tree/master/gstrtspserver" target="_blank">https://github.com/tmatth/gst-prototypes/tree/master/gstrtspserver</a><br>
<br>
I was wondering how I could pass an existing pipeline<br>
(src->encoder->payloader) to the GstRTSPMediaFactory instead of using<br>
gst_rtsp_media_factory_set_launch. Should I subclass GstRTSPMediaFactory<br>
and add a gst_rtsp_media_factory_set_bin method?<br>
</blockquote>
<br></div>
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.<br></blockquote><div><br>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?<br>
<br>-t <br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Wim<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Best,<br>
Tristan<br>
<br>
<br>
<br>
--<br>
Tristan Matthews<br>
email: <a href="mailto:tristan@sat.qc.ca" target="_blank">tristan@sat.qc.ca</a> <mailto:<a href="mailto:tristan@sat.qc.ca" target="_blank">tristan@sat.qc.ca</a>><div class="im"><br>
web: <a href="http://tristanswork.blogspot.com" target="_blank">http://tristanswork.blogspot.com</a><br>
<br>
<br>
<br></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Tristan Matthews<br>email: <a href="mailto:tristan@sat.qc.ca">tristan@sat.qc.ca</a><br>web: <a href="http://tristanswork.blogspot.com">http://tristanswork.blogspot.com</a><br>