mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
87344de7d4
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
34 lines
769 B
C++
34 lines
769 B
C++
|
|
#include "smplayercorelib.h"
|
|
#include "global.h"
|
|
#include "helper.h"
|
|
#include "preferences.h"
|
|
|
|
#include <QApplication>
|
|
|
|
int main( int argc, char ** argv ) {
|
|
QApplication a( argc, argv );
|
|
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
|
|
|
|
Helper::setAppPath( qApp->applicationDirPath() );
|
|
Global::global_init();
|
|
|
|
Global::pref->vo = "x11";
|
|
|
|
SmplayerCoreLib * player1 = new SmplayerCoreLib;
|
|
player1->mplayerWindow()->show();
|
|
player1->mplayerWindow()->resize(624,352);
|
|
player1->core()->openFile("video1.avi");
|
|
|
|
SmplayerCoreLib * player2 = new SmplayerCoreLib;
|
|
|
|
player2->mplayerWindow()->show();
|
|
player2->mplayerWindow()->resize(624,352);
|
|
player2->core()->openFile("video2.avi");
|
|
|
|
int r = a.exec();
|
|
Global::global_end();
|
|
|
|
return r;
|
|
}
|