]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
transcode: improve logging of packet transcode errors
authorJames Hutchinson <jahutchinson99@googlemail.com>
Fri, 16 May 2025 15:09:11 +0000 (16:09 +0100)
committerFlole <Flole998@users.noreply.github.com>
Mon, 2 Jun 2025 19:54:56 +0000 (21:54 +0200)
commit3f78c11a44a4277048b52d34a3a6ae1a1fb5aced
treefa8132b6fb89a7f74e4ca4a4e0c343ef757335c2
parent1288546386ae775200083ff0788dcdb8d783ce46
transcode: improve logging of packet transcode errors

Improve visibility of decoding failures during transcoding by logging
the error code, a human-readable description, and the packet PTS when
the hardware decoder fails to process a packet.

Previously, these errors would silently trigger `tvh_stream_stop()` on
the affected stream, with minimal context about the underlying cause.
This made it difficult to diagnose issues such as hardware acceleration
glitches or codec-specific decode failures.

With this change, such errors are logged at warning level, and full
packet details are included if trace logging is enabled. This provides
valuable diagnostic information when investigating stream interruptions
or video dropout.

This commit does not alter transcoder behavior; errors are still
filtered or handled by other components as before. It simply makes
decoder error conditions more transparent for debugging purposes.
src/transcoding/transcode/stream.c
src/transcoding/transcode/transcoder.c