From ee5b34c46cd4cc9df6aa1680e81970419eb696bd Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Wed, 23 Oct 2024 03:18:46 +0000 Subject: [PATCH] updated some more bindings --- src/main.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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!", .{});