commented out dead code
This commit is contained in:
parent
286ff765aa
commit
19c6d5ff24
1 changed files with 7 additions and 6 deletions
13
src/main.zig
13
src/main.zig
|
@ -6,6 +6,7 @@ const hlo = @cImport({
|
||||||
const gst = @cImport({ // glib-object for g_object_* functions
|
const gst = @cImport({ // glib-object for g_object_* functions
|
||||||
@cInclude("glib-object.h");
|
@cInclude("glib-object.h");
|
||||||
@cInclude("gst.h");
|
@cInclude("gst.h");
|
||||||
|
@cInclude("gstappsrc.h");
|
||||||
@cInclude("glib.h"); // and glib for other g_* functions
|
@cInclude("glib.h"); // and glib for other g_* functions
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -127,12 +128,12 @@ pub fn main() !void {
|
||||||
std.debug.panic("Could not start pipeline", .{});
|
std.debug.panic("Could not start pipeline", .{});
|
||||||
}
|
}
|
||||||
|
|
||||||
const bus: *gst.GstBus = gst.gst_element_get_bus(pipeline);
|
// const bus: *gst.GstBus = gst.gst_element_get_bus(pipeline);
|
||||||
const msg: *gst.GstMessage = gst.gst_bus_timed_pop_filtered( // This call holds until there is a valid message
|
// const msg: *gst.GstMessage = gst.gst_bus_timed_pop_filtered( // This call holds until there is a valid message
|
||||||
bus,
|
// bus,
|
||||||
gst.GST_CLOCK_TIME_NONE,
|
// gst.GST_CLOCK_TIME_NONE,
|
||||||
gst.GST_MESSAGE_ERROR | gst.GST_MESSAGE_EOS,
|
// gst.GST_MESSAGE_ERROR | gst.GST_MESSAGE_EOS,
|
||||||
);
|
//);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue