passing pipeline to GstRTSPMediaFactory

Tristan Matthews tristan at sat.qc.ca
Mon Feb 21 13:47:20 PST 2011


2011/2/21 Wim Taymans <wim.taymans at gmail.com>

> 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.
>

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


>
> Wim
>
>
>> Best,
>> Tristan
>>
>>
>>
>> --
>> Tristan Matthews
>> email: tristan at sat.qc.ca <mailto:tristan at sat.qc.ca>
>>
>> web: http://tristanswork.blogspot.com
>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 
Tristan Matthews
email: tristan at sat.qc.ca
web: http://tristanswork.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110221/eafef9d3/attachment.htm>


More information about the gstreamer-devel mailing list