<div dir="ltr"><div><div>Google 'gstreamer debugging'. You ought to get a lot of hits. Here is some information.<br><br><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-checklist-debug.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-checklist-debug.html</a><br>
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-checklist-debug.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-checklist-debug.html</a><br><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstInfo.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstInfo.html</a><br>
<br></div>On Linux use 'export GST_DEBUG=<some element name>:<1-6?>,<some other element>:<1-6>'<br><br></div>When you have a problem and don't know where it might be, start with GST_DEBUG=*:3 which allows info level debugging from everything. Then you can refine your logging as you get ideas about where the problem lies.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 2:40 PM, Bob Barker <span dir="ltr"><<a href="mailto:bobbarker278@gmail.com" target="_blank">bobbarker278@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><font face="Calibri">We’re new to GStreamer and are writing our own elements.<span> </span></font></div>
<div><font face="Calibri"><span></span></font> </div><div><font face="Calibri"><span>After downloading all the GStreamer source code and searching it, we cannot figure out how to turn on the debug output. For example, in this source excerpt how to do you get line 1049 to output at runtime? </span></font></div>
<div><font face="Calibri"><span></span></font> </div><div><font face="Calibri"><span>From </span></font><font face="Calibri"><span>gstreamer-1.0.10/libs/gst/base/gstbasesink.c" line 1027 of 4902</span></font></div><div>
<font face="Calibri"><span></span></font> </div><div><font face="Calibri"><span></span></font> </div><div><font face="Calibri"><span> 1026 gboolean<br> 1027 gst_base_sink_query_latency (GstBaseSink * sink, gboolean * live,<br>
1028 gboolean * upstream_live, GstClockTime * min_latency,<br> 1029 GstClockTime * max_latency)<br> 1030 {<br> 1031 gboolean l, us_live, res, have_latency;<br> 1032 GstClockTime min, max, render_delay;<br>
1033 GstQuery *query;<br> 1034 GstClockTime us_min, us_max;<br> 1035 <br> 1036 /* we are live when we sync to the clock */<br> 1037 GST_OBJECT_LOCK (sink);<br> 1038 l = sink->sync;<br> 1039 have_latency = sink->priv->have_latency;<br>
1040 render_delay = sink->priv->render_delay;<br> 1041 GST_OBJECT_UNLOCK (sink);<br> 1042 <br> 1043 /* assume no latency */<br> 1044 min = 0;<br> 1045 max = -1;<br> 1046 us_live = FALSE;<br>
1047 <br> 1048 if (have_latency) {<br> 1049 GST_DEBUG_OBJECT (sink, "we are ready for LATENCY query");<br> 1050 /* we are ready for a latency query this is when we preroll or when we are<br> 1051 * not async. */</span></font></div>
<p><font face="Calibri"><span></span></font> </p><div><font face="Calibri"><span></span></font> </div><div><font face="Calibri"><span>We tried searching for main() to see if debug output is turned on at runtime from command line arguments but there's 309 main() functions in the total source base.</span></font></div>
<div><font face="Calibri"><span></span></font> </div><div><font face="Calibri"><span></span></font> </div><div><font face="Calibri"><span>TIA</span></font></div><font face="Calibri"><div><br></div></font></div></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>