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 committed Jan 10, 2025
1 parent 50f35ae commit 455b6f0
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)

Check warning on line 157 in client_stream_processor_mpegts.go

View check run for this annotation

Codecov / codecov/patch

client_stream_processor_mpegts.go#L157

Added line #L157 was not covered by tests
}
}

Expand Down

0 comments on commit 455b6f0

Please sign in to comment.