<br>Yes, I am using python for this project and this script meets all of my requirements except for the file descriptor leak. <br><br>Is there a specific step required before/after loading a new audio file with:<br> self.player.get_by_name('urisrc').set_property('uri', 'file://' + filename)<br><br><br><br><br>-------- Original Message --------<br>On Jan 22, 2021, 7:04 PM, Mathieu Duponchelle < mathieu@centricular.com> wrote:<blockquote class="protonmail_quote"><br><html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hey, are you aware of the existence of gst-player?<br>
    <br>
<a class="moz-txt-link-freetext" href="https://gstreamer.freedesktop.org/documentation/player/gstplayer.html?gi-language=c">https://gstreamer.freedesktop.org/documentation/player/gstplayer.html?gi-language=c</a><br>
    <br>
    Cheers,<br>
    <br>
    <div class="moz-signature">-- <br>
      Mathieu Duponchelle · <a href="https://www.centricular.com">https://www.centricular.com</a></div>
    <br>
    <div class="moz-cite-prefix">On 1/22/21 5:01 PM, Patrick Shirkey
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:N052E1SuDM4mXTl9X-lagb0XGvyzJgavoSWX9OQIDkcczgAA3H9DuO6TZP-CzTBtopCwjWEh4ncwvJRY7ul8vvFtmNA6tJEwOYC2d0Gci90=@protonmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>Hi,<br>
      </div>
      <div><br>
      </div>
      <div>I am using this simple python script to play audio files:<br>
      </div>
      <div><br>
      </div>
      <div><a
href="https://github.com/atareao/lplayer/blob/master/src/lplayer/player.py"
          moz-do-not-send="true">https://github.com/atareao/lplayer/blob/master/src/lplayer/player.py</a><br>
      </div>
      <div><br>
      </div>
      <div>specifically <br>
      </div>
      <div><br>
      </div>
      <div>85: get_player()<br>
      </div>
      <div>135: play()<br>
      </div>
      <div>172: stop()<br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Any ideas on why I get 2 additional STREAM file descriptors
        every time I play a new track eventually resulting in "Too many
        open files" error and segfault?<br>
      </div>
      <div><br>
      </div>
      <div>ex.  44u     unix 0x000000008179a133       0t0  100262669
        type=STREAM<br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>--<br>
      </div>
      <div>Patrick Shirkey<br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
  </body>
</html>
</div>