Commit 60ef173d by 景炳强

support automatic selection the HD or 4K board-card

parent 17759148
...@@ -284,6 +284,11 @@ void MomentaMedia::AddDevice(ComPtr<IDeckLink>& deckLink) ...@@ -284,6 +284,11 @@ void MomentaMedia::AddDevice(ComPtr<IDeckLink>& deckLink)
deviceIdStr = rx.cap(0); deviceIdStr = rx.cap(0);
int deviceId = deviceIdStr.toInt(); int deviceId = deviceIdStr.toInt();
qDebug() << "available device " << deviceName << "\n";
if (!deviceName.contains("DeckLink 8K Pro"))
return;
#if USE_4K #if USE_4K
if (deviceName.contains("DeckLink 8K Pro (1)") || if (deviceName.contains("DeckLink 8K Pro (1)") ||
deviceName.contains("DeckLink 8K Pro (2)")) deviceName.contains("DeckLink 8K Pro (2)"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment