Fix record button callback segmentation fault
Compare changes
Files
2- Iiro Rastas authored
Setting the callback inside the callback was causing segmentation faults in some cases. The record button now has a single top-level callback that gets the necessary information through members added to the MediaPanel class.
+ 24
− 19
@@ -34,6 +33,9 @@ MediaPanel::MediaPanel(ftl::gui::Screen *screen) : nanogui::Window(screen, ""),
@@ -49,20 +51,11 @@ MediaPanel::MediaPanel(ftl::gui::Screen *screen) : nanogui::Window(screen, ""),
@@ -74,18 +67,30 @@ MediaPanel::MediaPanel(ftl::gui::Screen *screen) : nanogui::Window(screen, ""),