<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Use the <a
href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html">GST_DEBUG
environment variable</a>. I'm not sure how to figure out the
"category", but guessing usually works pretty well. For your case
I would guess the category is "basesink", so something like this
might work:<br>
<br>
# 5 == "debug"<br>
GST_DEBUG=basesink:5 gst-launch-1.0 [etc.]<br>
<br>
On 10/16/2013 12:40 PM, Bob Barker wrote:<br>
</div>
<blockquote
cite="mid:CAD-RRZu40tPCsLa8zjNb_6J-Vocrhq9ZdE0zoQ14Uo0h=LwOgg@mail.gmail.com"
type="cite">
<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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>