From bdf861b497abc81263a40676266c5f832c1adac6 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Mon, 29 Jul 2013 12:32:48 -0400 Subject: [PATCH] minor bug fix --- openbr/plugins/stream.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/stream.cpp b/openbr/plugins/stream.cpp index 5470f51..884176a 100644 --- a/openbr/plugins/stream.cpp +++ b/openbr/plugins/stream.cpp @@ -284,8 +284,11 @@ public: { qDebug("Video not open!"); } + } else { + // Yes, we should specify absolute path: + // http://stackoverflow.com/questions/9396459/loading-a-video-in-opencv-in-python + video.open(QFileInfo(input.file.name).absoluteFilePath().toStdString()); } - else video.open(input.file.name.toStdString()); return video.isOpened(); } -- libgit2 0.21.4