diff options
Diffstat (limited to 'src/control.zig')
| -rw-r--r-- | src/control.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control.zig b/src/control.zig index 4a29309..053f985 100644 --- a/src/control.zig +++ b/src/control.zig @@ -407,7 +407,7 @@ pub const ControlServer = struct { if (!std.mem.eql(u8, std.mem.span(texture_typeZ), "TEXTURE_2D")) return error.textureTypeInvalid; const ffmpeg = @import("ffmpeg.zig"); - const source = try ffmpeg.StreamSource.init(self.cache.allocator, self.constants, filenameZ, formatZ, args); + const source = try ffmpeg.StreamSource.init(self.cache.allocator, self.constants, .TEXTURE_2D, 1, filenameZ, formatZ, args); try self.add_source(name, source); return true; @@ -430,7 +430,7 @@ pub const ControlServer = struct { const args = if (argv.len > 4) argv[4..] else &.{}; const ffmpeg = @import("ffmpeg.zig"); - const source = try ffmpeg.BufferedStreamSource.init(self.cache.allocator, self.constants, texture_type, depth, filenameZ, formatZ, args); + const source = try ffmpeg.StreamSource.init(self.cache.allocator, self.constants, texture_type, depth, filenameZ, formatZ, args); try self.add_source(name, source); return true; |
