diff --git a/src/main.zig b/src/main.zig index ab38d54..4b797e2 100644 --- a/src/main.zig +++ b/src/main.zig @@ -21,10 +21,10 @@ pub fn main() !void { // This allows me to utilize the same command line args and gstreamer gst.init(@ptrCast(&std.os.argv.len), @ptrCast(&std.os.argv.ptr)); - const source: ?*gst.Element = gst.element_factory_make("videotestsrc", "source"); - const sink: ?*gst.Element = gst.element_factory_make("autovideosink", "sink"); + const source: ?*gst.Element = gst.ElementFactory.make("videotestsrc", "source"); + const sink: ?*gst.Element = gst.ElementFactory.make("autovideosink", "sink"); - const pipeline: ?*gst.Element = gst.pipeline_new("test-pipeline"); + const pipeline: ?*gst.Element = gst.Pipeline.new("test-pipeline"); if (source == null or sink == null or pipeline == null) { std.debug.panic("Not all elements could be created!", .{});