commented out dead code

This commit is contained in:
Nicholas Young 2024-10-18 23:04:28 -07:00
parent 286ff765aa
commit 19c6d5ff24

View file

@ -6,6 +6,7 @@ const hlo = @cImport({
const gst = @cImport({ // glib-object for g_object_* functions
@cInclude("glib-object.h");
@cInclude("gst.h");
@cInclude("gstappsrc.h");
@cInclude("glib.h"); // and glib for other g_* functions
});
@ -127,12 +128,12 @@ pub fn main() !void {
std.debug.panic("Could not start 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
bus,
gst.GST_CLOCK_TIME_NONE,
gst.GST_MESSAGE_ERROR | gst.GST_MESSAGE_EOS,
);
// 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
// bus,
// gst.GST_CLOCK_TIME_NONE,
// gst.GST_MESSAGE_ERROR | gst.GST_MESSAGE_EOS,
//);