how do you enable output of GST_DEBUG_OBJECT ?
Brendan Long
self at brendanlong.com
Wed Oct 16 22:44:56 CEST 2013
Use the GST_DEBUG environment variable
<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html>.
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:
# 5 == "debug"
GST_DEBUG=basesink:5 gst-launch-1.0 [etc.]
On 10/16/2013 12:40 PM, 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
>
>
>
> _______________________________________________
> 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/6ccbcec6/attachment.html>
More information about the gstreamer-devel
mailing list