/*!
* This file is part of CameraPlus.
*
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
}
QtCamVideoResolution QtCamVideoSettings::defaultResolution(const QString& aspectRatio) const {
+ if (d_ptr->resolutions.isEmpty()) {
+ return QtCamVideoResolution(QString(), QString(), QSize(), QSize(),
+ -1, -1, QString(), QString());
+ }
+
if (aspectRatio.isEmpty()) {
return d_ptr->resolutions[0];
}
}
}
- return d_ptr->resolutions;
+ return res;
}
QStringList QtCamVideoSettings::aspectRatios() const {