Duncan Palmer
dpalmer at digisoft.tv
Thu Oct 17 11:04:15 CEST 2013
Hi Bob,
Much useful information can be found here
https://developer.ridgerun.com/wiki/index.php/GStreamer_Debugging ,
and in the gstreamer documentation e.g.
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html
Dunk
On 16 October 2013 19:38, Bob Barker <bobbarker278 at gmail.com> wrote:
> We’re new to GStreamer and are writing our own elements.
>
> 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?
>
> From gstreamer-1.0.10/libs/gst/base/gstbasesink.c" line 1027 of 4902
>
>
> 1026 gboolean
> 1027 gst_base_sink_query_latency (GstBaseSink * sink, gboolean * live,
> 1028 gboolean * upstream_live, GstClockTime * min_latency,
> 1029 GstClockTime * max_latency)
> 1030 {
> 1031 gboolean l, us_live, res, have_latency;
> 1032 GstClockTime min, max, render_delay;
> 1033 GstQuery *query;
> 1034 GstClockTime us_min, us_max;
> 1035
> 1036 /* we are live when we sync to the clock */
> 1037 GST_OBJECT_LOCK (sink);
> 1038 l = sink->sync;
> 1039 have_latency = sink->priv->have_latency;
> 1040 render_delay = sink->priv->render_delay;
> 1041 GST_OBJECT_UNLOCK (sink);
> 1042
> 1043 /* assume no latency */
> 1044 min = 0;
> 1045 max = -1;
> 1046 us_live = FALSE;
> 1047
> 1048 if (have_latency) {
> 1049 GST_DEBUG_OBJECT (sink, "we are ready for LATENCY query");
> 1050 /* we are ready for a latency query this is when we preroll or
> when we are
> 1051 * not async. */
>
>
>
>
> 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.
>
>
> TIA
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list