<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>