]> git.sesse.net Git - nageru/blobdiff - analyzer.cpp
Fix an issue where the mixer lagging too much behind CEF would cause us to display...
[nageru] / analyzer.cpp
index cca3133090c7f0478bd977440caeb8827554f13b..b24b46a26ff52457ae3893f7cbf6b1253a1b2f24 100644 (file)
@@ -69,7 +69,7 @@ Analyzer::Analyzer()
 
         glGenBuffers(1, &pbo);
         glBindBuffer(GL_PIXEL_PACK_BUFFER_ARB, pbo);
-        glBufferData(GL_PIXEL_PACK_BUFFER_ARB, global_flags.width * global_flags.height * 4, NULL, GL_STREAM_READ);
+        glBufferData(GL_PIXEL_PACK_BUFFER_ARB, global_flags.width * global_flags.height * 4, nullptr, GL_STREAM_READ);
 
        ui->histogram->xAxis->setVisible(true);
        ui->histogram->yAxis->setVisible(false);
@@ -116,7 +116,7 @@ void Analyzer::grab_clicked()
 
        Mixer::DisplayFrame frame;
        if (!global_mixer->get_display_frame(channel, &frame)) {
-               printf("Not ready yet\n");
+               // Not ready yet.
                return;
        }