updated some more bindings

This commit is contained in:
Nickiel12 2024-10-23 03:18:46 +00:00
parent e3a8b39f72
commit ee5b34c46c

View file

@ -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!", .{});