srctree

Andrew Kelley parent c73ab9fe 8d71f958
update ffmpeg dependency

This version returns error.FFmpegInvalid rather than asserting on EINVAL. Unfortunately, in a classic C programmer fashion, they conflated user input errors and programmer bugs.
README.md added: 7, removed: 5, total 2
@@ -44,6 +44,7 @@ zig build
 
## Roadmap
 
* Web UI
* example that transcodes a list of input files
* update playlist example to support scripted inputs including pausing,
seeking, volume adjustment
 
build.zig.zon added: 7, removed: 5, total 2
@@ -3,8 +3,8 @@
.version = "0.0.0",
.dependencies = .{
.ffmpeg = .{
.url = "https://github.com/andrewrk/ffmpeg/archive/e8ecba7ecdcfae774a5491ac1274be84e7ea87c0.tar.gz",
.hash = "1220eaf0f4ac95dad5b6b5ba4637dee1331a8a2782760bd86e533ed3097b795a8d1e",
.url = "https://github.com/andrewrk/ffmpeg/archive/refs/tags/7.0.1-2.tar.gz",
.hash = "12201270c63ee9c9442fdbf66d03bdd3da72eb5b79afef70c5edc22367e792b9cf8f",
},
.soundio = .{
.url = "https://github.com/andrewrk/libsoundio/archive/refs/tags/2.0.1-7.tar.gz",
 
server/main.zig added: 7, removed: 5, total 2
@@ -67,6 +67,7 @@ pub fn main() anyerror!noreturn {
while (try walker.next()) |entry| {
if (entry.kind != .file) continue;
 
std.log.debug("opening '{s}'", .{entry.path});
const file = player.File.open(config.music_directory.handle, entry.path, entry.basename) catch |err| {
std.log.warn("unable to open '{s}': {s}", .{ entry.path, @errorName(err) });
continue;