cabernetwork / cabernet

Cabernet allows control of IPTV streams. Plugins supports DaddyLive, Pluto TV, XUMO, M3U/XMLTV.XML files (SamsungTV, STIRR, DistroTV, Plex TV)
https://cabernetwork.github.io
MIT License
176 stars 23 forks source link

fix to terminate ffmpeg when playback stops #5

Closed cookieisland closed 2 years ago

cookieisland commented 2 years ago

ffmpeg processes were being left behind as zombie processes. This fix is to stop that.

cookieisland commented 2 years ago

I found some error in my logic so do not commit this - but I am sure you noticed that. LOL The problem is that every playback that is stopped leaves a defunct/zombie behind. after a while my OS runs out of memory and starts killing random processes.

cookieisland commented 2 years ago

This commit I just added works well for me. I no longer have zombie ffmpeg processes.