]> git.sesse.net Git - nageru/blobdiff - main.cpp
Add a HTTP server for stream output.
[nageru] / main.cpp
index d3206f7ff86786032b55a978105cf7e0874c70e4..6e95d18de6103415cad06f45c53036c70dd6069e 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -14,6 +14,8 @@
 int main(int argc, char *argv[])
 {
        setenv("QT_XCB_GL_INTEGRATION", "xcb_egl", 0);
+       setlinebuf(stdout);
+       av_register_all();
 
        QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
        QApplication app(argc, argv);
@@ -31,10 +33,11 @@ int main(int argc, char *argv[])
        global_share_widget = new QGLWidget();
 
        MainWindow mainWindow;
-       mainWindow.resize(QSize(1500, 720));
+       mainWindow.resize(QSize(1500, 670));
        mainWindow.show();
 
        int rc = app.exec();
        global_mixer->quit();
+       delete global_mixer;
        return rc;
 }