diff --git a/src/video/sourcesmodel.cpp b/src/video/sourcesmodel.cpp index f4a767861fa4de66c3e79faa319fe8162bed32d2..d6403635d0488d4bf7b2fe17a02a656e79e7cdaf 100644 --- a/src/video/sourcesmodel.cpp +++ b/src/video/sourcesmodel.cpp @@ -33,7 +33,7 @@ public: constexpr static const char* NONE = "" ; constexpr static const char* DISPLAY = "display://"; constexpr static const char* FILE = "file://" ; - constexpr static const char* V4L2 = "v4l2://" ; + constexpr static const char* CAMERA = "camera://" ; }; struct Display { @@ -164,7 +164,7 @@ void Video::SourcesModel::switchTo(const int idx) ); break; default: - DBus::VideoManager::instance().switchInput(Video::SourcesModelPrivate::ProtocolPrefix::V4L2 + + DBus::VideoManager::instance().switchInput(Video::SourcesModelPrivate::ProtocolPrefix::CAMERA + Video::DeviceModel::instance()->index(idx-ExtendedDeviceList::COUNT__,0).data(Qt::DisplayRole).toString()); break; }; @@ -173,7 +173,7 @@ void Video::SourcesModel::switchTo(const int idx) void Video::SourcesModel::switchTo(Video::Device* device) { - DBus::VideoManager::instance().switchInput(Video::SourcesModelPrivate::ProtocolPrefix::V4L2 + device->id()); + DBus::VideoManager::instance().switchInput(Video::SourcesModelPrivate::ProtocolPrefix::CAMERA + device->id()); } Video::Device* Video::SourcesModel::deviceAt(const QModelIndex& idx) const