Skip to content

Commit

Permalink
client: show codec in 'unsupported codec' error (bluenviron/mediamtx#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Jan 10, 2025
1 parent 8ef8263 commit 62e427b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_stream_processor_mpegts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 62e427b

Please sign in to comment.