<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Looks like there is an ordering issue. 
      On android you need to register the plugin before it can be used. 
      This may be an issue in GStreamer or with your build
      modifications.<br>
      <br>
      Cheers<br>
      -Matt<br>
      <br>
      On 6/11/19 9:09 pm, Sirius Wu wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAB2+enMhqb-PkbOw2VjFjRLQkEXCYd5d2cnhE-Hdm1qRJ6gPZg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>HI,</div>
        <div><br>
        </div>
        <div>I've modified Android tutorial 5 to learn how to write a
          player.</div>
        <div>I'm using GStreamer 1.16.1.</div>
        <div><br>
        </div>
        <div>While testing the tutorial with a HLS link, I suspected
          that there are memory leaks caused by the playbin plugin. So I
          passed the following environment with Android's Os.setenv() to
          the player. I also added a gst_deinit() at the end of
          app_function().<br>
        </div>
        <div><br>
        </div>
                    Os.setenv("GST_TRACERS", "leaks", true);<br>
                    Os.setenv("GST_DEBUG", "GST_TRACER:7", true);<br>
        <div><br>
        </div>
        <div>But I cannot find any logs from the leak tracer. I've only
          seen the following warning:</div>
        <div><br>
        </div>
        <div>_priv_gst_tracing_init no tracer named 'leaks'<br>
          gst_tracer_register:<tracerfactory0> new tracer factory
          for latency<br>
          gst_tracer_register:<latency> tracer factory for
          2818005248:GstLatencyTracer<br>
          gst_tracer_register:<tracerfactory1> new tracer factory
          for log<br>
          gst_tracer_register:<log> tracer factory for
          2818005328:GstLogTracer<br>
          gst_tracer_register:<tracerfactory2> new tracer factory
          for rusage<br>
          gst_tracer_register:<rusage> tracer factory for
          2818005408:GstRUsageTracer<br>
          gst_tracer_register:<tracerfactory3> new tracer factory
          for stats<br>
          gst_tracer_register:<stats> tracer factory for
          2818005488:GstStatsTracer<br>
          gst_tracer_register:<tracerfactory4> new tracer factory
          for leaks<br>
          gst_tracer_register:<leaks> tracer factory for
          2818005568:GstLeaksTracer</div>
        <br>
        <div>-- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div><span></span>Sirius Wu<br>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>