<p dir="ltr">Hi</p>
<p dir="ltr">How about adding new callback which can be called instead of factory_create inside decodebin?<br>
I think this has more extensible than adding enum.<br></p>
<p dir="ltr">GstElement* el;<br>
if (callback)<br>
  el = callback(name, ...);<br>
else<br>
  el = factory_create();</p>
<p dir="ltr">Now, you can do anyhing in callback, avoid or jus use pre-created.</p>
<div class="gmail_quote">2015. 5. 6. 오후 12:28에 "ruchikachaddha" <<a href="mailto:ruchika.chaddha@gmail.com">ruchika.chaddha@gmail.com</a>>님이 작성:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Tim for your advice.<br>
Would this also work if the intension is simply to avoid factory_create<br>
inside encodebin for a particular factory? In my context, factory_create<br>
initializes hardware decoder which I want to avoid doing inside decodebin<br>
for some reason.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Decodebin-query-autoplug-externally-created-elements-tp4671790p4671802.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Decodebin-query-autoplug-externally-created-elements-tp4671790p4671802.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<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>
</blockquote></div>