diff options
Diffstat (limited to 'libmpv/qt_opengl/main.cpp')
-rw-r--r-- | libmpv/qt_opengl/main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libmpv/qt_opengl/main.cpp b/libmpv/qt_opengl/main.cpp new file mode 100644 index 0000000..086a4b4 --- /dev/null +++ b/libmpv/qt_opengl/main.cpp @@ -0,0 +1,13 @@ +#include <QApplication> +#include "mainwindow.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + // Qt sets the locale in the QApplication constructor, but libmpv requires + // the LC_NUMERIC category to be set to "C", so change it back. + setlocale(LC_NUMERIC, "C"); + MainWindow w; + w.show(); + return a.exec(); +} |