<div dir="ltr"><div>The process does work, so you have some small but critical error. The GST_DEBUG_OBJECT requires some object pointer as the first parameter, so insure that you have that. Alternatively, you can simply use GST_DEBUG(...). Second, you say 'declare GST_DEBUG=', it must be 'export GST_DEBUG=' in your environment before launching the app, assuming Linux.<br><br></div>If you are still having trouble, post the OS you are using and code snippets around the important lines (GST_DEBUG_CATEGORY, #define _do_init..., export GST_DEBUG=...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 8:34 AM, Francisco Velázquez <span dir="ltr"><<a href="mailto:francisco.javier@me.com" target="_blank">francisco.javier@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi GStreamer devel community,<div><br></div><div>I have a question that may be trivial, but I’m struggling with it. My question refers to the code of Chapter 19 of the GStreamer manual posted in <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html</a></div><div><br></div><div>My question is:</div><div><br></div><div>How to print GST_DEBUG_OBJECT messages in console?</div><div><br></div><div>I have read the threads below among others. The environment variable GST_DEBUG has an effect when being general. For example, GST_DEBUG=5 or GST_DEBUG=*:5 print messages from all involved categories. I have not figured out how to print to the console the messages from the code example.</div><div><br></div><div><a href="http://gstreamer-devel.966125.n4.nabble.com/how-do-you-enable-output-of-GST-DEBUG-OBJECT-td4662640.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/how-do-you-enable-output-of-GST-DEBUG-OBJECT-td4662640.html</a></div><div><a href="http://permalink.gmane.org/gmane.comp.video.gstreamer.devel/46433" target="_blank">http://permalink.gmane.org/gmane.comp.video.gstreamer.devel/46433</a></div><div><br></div><div>I have also tried to initialise a category for the code example with:</div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">GST_DEBUG_CATEGORY (my_category);</div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(120,73,42)">#define GST_CAT_DEFAULT my_category</div></div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(120,73,42)">#define _do_init GST_DEBUG_CATEGORY_INIT (my_category, <span style="color:#d12f1b">"my category"</span>, <span style="color:#272ad8">0</span>, <span style="color:#d12f1b">"This is the category for the code example of Chapter 19"</span>);</div></div><div><br></div><div>Then, I declare GST_DEBUG=mycategory:9, but there are no messages printed from GST_DEBUG_OBJECT.</div><div><br></div><div>Thanks a lot for any hint!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Francisco</div><div><br></div></font></span></div><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>
<br></blockquote></div><br></div>