diff --git a/src/video/sourcemodel.cpp b/src/video/sourcemodel.cpp index 0d629175bae2949023f3131c7fe844d961f86db9..fb0f7c0aef4a91a97bbde127c5f44a2ab90dc73e 100644 --- a/src/video/sourcemodel.cpp +++ b/src/video/sourcemodel.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::SourceModel::switchTo(const int idx) ); break; default: - DBus::VideoManager::instance().switchInput(Video::SourceModelPrivate::ProtocolPrefix::V4L2 + + DBus::VideoManager::instance().switchInput(Video::SourceModelPrivate::ProtocolPrefix::CAMERA + Video::DeviceModel::instance()->index(idx-ExtendedDeviceList::COUNT__,0).data(Qt::DisplayRole).toString()); break; }; @@ -173,7 +173,7 @@ void Video::SourceModel::switchTo(const int idx) void Video::SourceModel::switchTo(Video::Device* device) { - DBus::VideoManager::instance().switchInput(Video::SourceModelPrivate::ProtocolPrefix::V4L2 + device->id()); + DBus::VideoManager::instance().switchInput(Video::SourceModelPrivate::ProtocolPrefix::CAMERA + device->id()); } Video::Device* Video::SourceModel::deviceAt(const QModelIndex& idx) const