summaryrefslogtreecommitdiff
path: root/src/simplertp.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 17:50:15 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 17:50:15 +0200
commit65fd912c67ad76ad7ef6dee1ade7d76d26b08efd (patch)
treec9e3813e9de70d1074b9d042639e482ff3749b28 /src/simplertp.cc
parentcddfe69635bcb66bc254d20f4973eeabb4061b7e (diff)
Add video device argument.
Diffstat (limited to 'src/simplertp.cc')
-rw-r--r--src/simplertp.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/simplertp.cc b/src/simplertp.cc
index 6cff1ff..d833cf1 100644
--- a/src/simplertp.cc
+++ b/src/simplertp.cc
@@ -32,7 +32,11 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
- MainWindow wnd;
+ QString v4ldev = "/dev/video0";
+
+ if(argc > 1) v4ldev = argv[1];
+
+ MainWindow wnd(v4ldev);
wnd.show();
return app.exec();