I have an issue with my libreelec installation when watching TV.

My configuration is:

  • Raspberry Pi 4 (4GB)
  • Libreelec 9.1.501
  • Kodi Leia 18.4
  • Audio Video Receiver connected via HDMI
  • TVHeadend backend

The problem occurs when playing a stream from tvheadend using the tvheadend add-on after the appearence of the following error message in the kodi.log:

  1. ERROR: CMMALVideo::dec_control_port_cb Error (status=3 EINVAL)

One does not notice that there is a problem because everything keeps playing. But when you switch to another channel or stop the playback of the current channel, all you get is a blank screen.

However, in the background the stream keeps on playing (in the tvheadend backend the stream is still active).

To me it seems that there is an problem in the way the error (status=3 EINVAL) is handled by the software.

In my case it only occurs when playing an video stream with AC3 audio enabled. When I switch to MP2 audio the problem does not seem to occur, but in that case I have no multi-channel audio anymore.

I do have a log with debugging information, but it is approx 45 MB in size, which I cannot attach to this post. So please let me know what you want me to do with it.

The logfile contains the following info at the point where the stream is stopped:

From the log file you might also conclude that the stream is still playing (the dropped packet lines).

I also have a Raspberry Pi 3B+ which does not have the problem. The problem also occurred with Leia 18.3.

I hope someone can have a look at this issue, because restarting kodi for every channel switch is not a nice option:).