Give a name to decoder instances

This will be useful in logs.

PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757>
This commit is contained in:
Romain Vimont
2023-02-24 21:22:35 +01:00
parent 99837fa600
commit 05f0e35d2a
3 changed files with 12 additions and 6 deletions

View File

@@ -441,7 +441,7 @@ scrcpy(struct scrcpy_options *options) {
needs_video_decoder |= !!options->v4l2_device;
#endif
if (needs_video_decoder) {
sc_decoder_init(&s->video_decoder);
sc_decoder_init(&s->video_decoder, "video");
sc_demuxer_add_sink(&s->video_demuxer, &s->video_decoder.packet_sink);
}