updated some more bindings
This commit is contained in:
parent
e3a8b39f72
commit
ee5b34c46c
1 changed files with 3 additions and 3 deletions
|
@ -21,10 +21,10 @@ pub fn main() !void {
|
||||||
// This allows me to utilize the same command line args and gstreamer
|
// This allows me to utilize the same command line args and gstreamer
|
||||||
gst.init(@ptrCast(&std.os.argv.len), @ptrCast(&std.os.argv.ptr));
|
gst.init(@ptrCast(&std.os.argv.len), @ptrCast(&std.os.argv.ptr));
|
||||||
|
|
||||||
const source: ?*gst.Element = gst.element_factory_make("videotestsrc", "source");
|
const source: ?*gst.Element = gst.ElementFactory.make("videotestsrc", "source");
|
||||||
const sink: ?*gst.Element = gst.element_factory_make("autovideosink", "sink");
|
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) {
|
if (source == null or sink == null or pipeline == null) {
|
||||||
std.debug.panic("Not all elements could be created!", .{});
|
std.debug.panic("Not all elements could be created!", .{});
|
||||||
|
|
Loading…
Reference in a new issue