+/*!
+ * This file is part of CameraPlus.
+ *
+ * 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
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
#include "qtcamscanner.h"
#include "qtcamconfig.h"
#include <QDir>
void QtCamScannerPrivate::scanEnum() {
// Too bad there's no way to get the values of an enum without creating the element :(
- GstElement *elem = gst_element_factory_make(conf->videoSource().toAscii(), NULL);
+ GstElement *elem = gst_element_factory_make(conf->videoSource().toLatin1(), NULL);
if (!elem) {
return;
}
GParamSpec *spec = g_object_class_find_property(G_OBJECT_GET_CLASS(elem),
- conf->deviceScannerProperty().toAscii());
+ conf->deviceScannerProperty().toLatin1());
if (!spec) {
gst_object_unref(elem);
return;
struct v4l2_capability cap;
memset(&cap, 0x0, sizeof(cap));
- int fd = open(dev.toLocal8Bit().data(), O_RDONLY);
+ int fd = open(dev.toLocal8Bit().constData(), O_RDONLY);
if (fd == -1) {
continue;
}