Give a name to demuxer instances

This will be useful in logs.
This commit is contained in:
Romain Vimont
2023-02-19 00:13:54 +01:00
parent ceb3423b98
commit 25e68cd7ba
3 changed files with 12 additions and 8 deletions

View File

@@ -449,7 +449,7 @@ scrcpy(struct scrcpy_options *options) {
static const struct sc_demuxer_callbacks video_demuxer_cbs = {
.on_ended = sc_video_demuxer_on_ended,
};
sc_demuxer_init(&s->video_demuxer, s->server.video_socket,
sc_demuxer_init(&s->video_demuxer, "video", s->server.video_socket,
&video_demuxer_cbs, NULL);
if (dec) {