Thanks,<br>To my desktop app startup time is critical, so, if I switch to the Gst C interface do you think the gst_init() would never take longer than say 200 milliseconds? Or is it nonetheless possible for it to take much longer like over 1-2 seconds in some cases?<br>
<br><br><br><div class="gmail_quote">On Sun, Sep 9, 2012 at 7:37 AM, José Alburquerque <span dir="ltr"><<a href="mailto:jaalburquerque@cox.net" target="_blank">jaalburquerque@cox.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, 2012-09-08 at 13:19 +0300, Jiergir Ogoerg wrote:<br>
> Hi,<br>
> Gst::init() takes like 100+ ms, on rare occasions it takes even<br>
> longer, like over 2-4 seconds. Is it normal?<br>
<br>
</div>Probably.  The reason is that Gst::init() not only initializes<br>
GStreamer, it also initializes glibmm (which it relies on) and registers<br>
methods that wrap C types to correct C++ types for all the GStreamer<br>
GObject and GstMiniObject derived types and all the GStreamer plug-in<br>
types that gstreamermm makes available to be used in a C++ way.  In the<br>
process, it must load all the plug-ins that gstreamermm makes available<br>
(this is probably the most time consuming part though only for the<br>
execution for which the plug-ins have not been loaded; the rest of the<br>
executions wont experience so much a delay).  We know of no other way to<br>
ensure that the C objects handled are correctly differentiated and<br>
treated as appropriate C++ classes.<br>
<div class="im HOEnZb"><br>
><br>
> To combat this I do Gst::init() in another pthread for my gui app to<br>
> show up instantly as usually.<br>
><br>
> Using Ubuntu 12.04 amd64.<br>
> Intel Core i5.<br>
</div><div class="im HOEnZb">> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">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>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
José<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">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>
</div></div></blockquote></div><br>