<div dir="ltr">Ok, I see.<div>Thank you for your answer.<div><br></div><div>/Mats<br><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-26 9:08 GMT+02:00 Jan Alexander Steffens <span dir="ltr"><<a href="mailto:jan.steffens@gmail.com" target="_blank">jan.steffens@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span class=""><div dir="ltr">On Mon, Jun 26, 2017 at 8:59 AM Mats Lindestam <<a href="mailto:mats.lindestam@gmail.com" target="_blank">mats.lindestam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have an element (bin) that has defined its own GstDebugCategory. What I did was to break out some of the element-functions to another utility-file. This was done to facilitate stubbing when running check-tests.</div><div><br></div><div>A drawback of this is that Gstreamer logging functions e.g. GST_DEBUG (), GST_INFO (), GST_ELEMENT_ERROR(),... does not seem to work in the utility-file.<br clear="all"><div><br></div><div>Is there a way around this, so that the utility-file can use the debug category of the element?</div></div></div></blockquote><div><br></div></span><div>If you want to share a debug category across more than one compilation unit, instead of using GST_DEBUG_CATEGORY_STATIC, define the category using GST_DEBUG_CATEGORY in one compilation unit and reference it using GST_DEBUG_CATEGORY_EXTERN in the other units (e.g. via the element's header file).</div><div><br></div><div>You still need to define GST_CAT_DEFAULT in all compilation units.<br></div></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"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mvh<div><br></div><div>/Mats</div></div></div>
</div>