how do you enable output of GST_DEBUG_OBJECT ?

Bob Barker bobbarker278 at gmail.com
Wed Oct 16 23:34:56 CEST 2013


Thanks All! That helps tremendously... especially the links to the
tutorials.


On Wed, Oct 16, 2013 at 1:16 PM, Remco Treffkorn <remco at rvt.com> wrote:

>
> Does this help:
>
>
> http://stackoverflow.com/questions/3298934/how-do-i-view-gstreamer-debug-output
>
>
> On Wednesday, October 16, 2013 11:40:12 Bob Barker 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
> --
> Remco Treffkorn (RT445)
> HAM DC2XT
> remco at rvt.com   (831) 685-1201
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131016/a338e29c/attachment.html>


More information about the gstreamer-devel mailing list