Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Handle EOF properly in get_flac_metadata

Change-Id: I5e581990046a9f4a0859787aff2fd6fc06fbf7f5

authored by

Yuxuan Shui and committed by
Solomon Peachy
5758a055 e4ccd23b

+3 -2
+1
docs/CREDITS
··· 697 697 Stéphane Moutard-Martin 698 698 Rune Pade 699 699 Michael Rey 700 + Yuxuan Shui 700 701 701 702 The libmad team 702 703 The wavpack team
+2 -2
lib/rbcodec/metadata/flac.c
··· 59 59 unsigned long i; 60 60 int type; 61 61 62 - if (read(fd, buf, 4) < 0) 62 + if (read(fd, buf, 4) != 4) 63 63 { 64 64 return rc; 65 65 } ··· 73 73 { 74 74 unsigned long totalsamples; 75 75 76 - if (i >= sizeof(id3->path) || read(fd, buf, i) < 0) 76 + if (i >= sizeof(id3->path) || read(fd, buf, i) != i) 77 77 { 78 78 return rc; 79 79 }