From 03839741d41703a040c135e5dd99654b8e81d13c Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 12 Mar 2013 14:19:00 -0400 Subject: [PATCH] fixed youtubeface plugin --- sdk/plugins/youtube.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sdk/plugins/youtube.cpp b/sdk/plugins/youtube.cpp index 8954fe6..ce90df7 100644 --- a/sdk/plugins/youtube.cpp +++ b/sdk/plugins/youtube.cpp @@ -17,14 +17,13 @@ class YouTubeFacesDBTransform : public UntrainableMetaTransform Q_PROPERTY(QString algorithm READ get_algorithm WRITE set_algorithm RESET reset_algorithm STORED false) BR_PROPERTY(QString, algorithm, "") - void project(const TemplateList &src, TemplateList &dst) const - { - Transform::project(src.mid(1) /* First template is the header in 'splits.txt' */, dst); - } - void project(const Template &src, Template &dst) const { static QMutex mutex; + + // First input is the header in 'splits.txt' + if (src.file.get("Index") == 0) return; + const QStringList words = src.file.name.split(", "); const QString matrix = "YTF-"+algorithm+"/"+words[0] + "_" + words[1] + "_" + words[4] + ".mtx"; const QStringList arguments = QStringList() << "-algorithm" << algorithm -- libgit2 0.21.4