python: Too many open files

Patrick Shirkey patrickshirkey at protonmail.com
Fri Jan 22 18:27:14 UTC 2021


Yes, I am using python for this project and this script meets all of my requirements except for the file descriptor leak.

Is there a specific step required before/after loading a new audio file with:
self.player.get_by_name('urisrc').set_property('uri', 'file://' + filename)

-------- Original Message --------
On Jan 22, 2021, 7:04 PM, Mathieu Duponchelle wrote:

> Hey, are you aware of the existence of gst-player?
>
> https://gstreamer.freedesktop.org/documentation/player/gstplayer.html?gi-language=c
>
> Cheers,
>
> --
> Mathieu Duponchelle · https://www.centricular.com
>
> On 1/22/21 5:01 PM, Patrick Shirkey wrote:
>
>> Hi,
>>
>> I am using this simple python script to play audio files:
>>
>> https://github.com/atareao/lplayer/blob/master/src/lplayer/player.py
>>
>> specifically
>>
>> 85: get_player()
>> 135: play()
>> 172: stop()
>>
>> 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?
>>
>> ex. 44u unix 0x000000008179a133 0t0 100262669 type=STREAM
>>
>> --
>> Patrick Shirkey
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>>
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210122/645873ea/attachment.htm>


More information about the gstreamer-devel mailing list