Sometimes Kodi hangs on stopping a stream – MMAL issue

Hi

I have some streams which are managed with pvr.iptvsimple, and occasionally when stopping a stream, it hangs on the last frame and the only possible solution is to reboot the system/restart kodi. This situation happens only after watching the same stream for a while, I can say for sure how long, but surely more than 10-15-20 min.

Current version is Raspbian’s 17.1, this doesn’t happen on 17.0.

kodi.log shows the following error:

Code:
00:46:44.767 T:1409491888   ERROR: CMMALVideo::dec_control_port_cb Error (status=3 EINVAL)

I’ve tried to enable debug but I couldn’t reproduce it in any of the attempts.

Switching to OMX “fixed” the issue, but there’s no image on MPEG 2 streams. Usually this error doesn’t occur when stopping the stream, but sometime before, and when this shows up in the logs, for sure it will hang when stopping the stream.

I’m sorry I can’t provide more info, but as I said, with debug on I was never able to reproduce it.

Maybe @popcornmix has some idea on this Smile