From 455b6f0e9f60a43f6827656ae950d5796b2e8c9e Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:51:36 +0100 Subject: [PATCH] client: show codec in 'unsupported codec' error (bluenviron/mediamtx#4123) --- client_stream_processor_mpegts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_stream_processor_mpegts.go b/client_stream_processor_mpegts.go index c17ede2..d8fcae1 100644 --- a/client_stream_processor_mpegts.go +++ b/client_stream_processor_mpegts.go @@ -154,7 +154,7 @@ func (p *clientStreamProcessorMPEGTS) initializeReader(ctx context.Context, firs switch track.Codec.(type) { case *mpegts.CodecH264, *mpegts.CodecMPEG4Audio: default: - return fmt.Errorf("unsupported track type: %T", track) + return fmt.Errorf("unsupported codec: %T", track.Codec) } }