<div dir="ltr"><span class=""></span><br><span class=""></span><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
><br>
> This element is created by gst_parse_launch_full with<br>
> GST_PARSE_FLAG_PLACE_IN_BIN.<br>
> Should I then modify grammar.tab.c to add my custom flag<br>
> GST_PARSE_FLAG_PLACE_IN_MY_BIN which would return a "MyBin" instead<br>
> of "GstBin" ?<br>
<br>
</span>Don't use gst_parse_launch() but create the bin and other elements<br>
normally. There's no need to change any GStreamer code.<br>
<span class=""><br></span></blockquote><div><br></div><div>Fine. But rtsp-media-factory does not provide a way to get/set the bin except with a "gst-launch" string.<br></div><div>So how do I create the bin and other elements ? Should I subclass the  rtsp-media-factory to create the bin ?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> > A better approach might be to place the motion detector in front of the<br>
> > annotation element, so that it can be to information directly on its<br>
> > output buffers (GstMeta e.g.) and let the annotation element directly<br>
> > read it from there instead of having yet another way of communication.<br>
><br>
> So then the motion detector would act as a passthrough with my custom<br>
> metadata ?<br>
<br>
</span>Yes<br>
<span class=""><br>
> > Alternatively you could also let the motion detection element know<br>
> > about the annotation element and have them communicate via direct<br>
> > function calls.<br>
><br>
> Yes but I would need to implement my own inter-thread communication<br>
<br>
</span>No, you can just do normal function calls. And as usual with threads,<br>
you have to make sure your code is thread-safe. The messages wouldn't<br>
help with that either.<br>
</blockquote><div><br></div><div>ok.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
</div></div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="font-size:12.8px;margin:0px"><b style="color:rgb(64,64,64);font-family:arial,helvetica,sans-serif">Eloi Bail</b></p><p style="margin:0px;font-size:13px"><span style="font-size:8pt;font-family:Verdana,sans-serif;color:rgb(89,89,89)" lang="EN-CA"><b><u></u> </b><u></u></span></p><p style="margin:0px;font-size:13px"><font face="arial, helvetica, sans-serif" color="#666666">7844 rue Saint André</font><b style="font-family:arial,helvetica,sans-serif"><font color="#666666"> </font><font color="#333333">| </font></b><span style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif">Montréal </span><b style="font-family:arial,helvetica,sans-serif;background-color:transparent"><font color="#333333">|</font></b><span style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif"> QC </span><b style="font-family:arial,helvetica,sans-serif;background-color:transparent"><font color="#333333">|</font></b><span style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif"> Canada </span><b style="font-family:arial,helvetica,sans-serif;background-color:transparent"><font color="#333333">|</font></b><span style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif"> </span><font style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif">H2R 2R3 </font><b style="font-family:arial,helvetica,sans-serif;background-color:transparent"><font color="#333333">|</font></b></p><p style="font-size:12.8px;margin:0px"><font face="arial, helvetica, sans-serif" color="#666666">t. 514.578.6133 </font></p></div></div></div></div>
</div></div>