GstPipelineStudio/src/main.cpp
Stéphane Cerveau 11ab47ffde Introduce logger class
GraphManager is now using pipeviz category
Logger class is able to read GST logs.
Ony WARN and ERROR are logged now.
2017-06-20 22:51:49 +02:00

27 lines
459 B
C++

#include <QApplication>
#include "MainWindow.h"
#include <gst/gst.h>
int
main (int argc, char **argv)
{
Logger::instance().configure_logger ();
gst_init (&argc, &argv);
GstRegistry *registry;
#if GST_VERSION_MAJOR >= 1
registry = gst_registry_get();
#else
registry = gst_registry_get_default ();
#endif
gst_registry_scan_path (registry, "./plugins");
QApplication app (argc, argv);
MainWindow wgt;
wgt.show ();
return app.exec ();
}