Skip to content

Commit

Permalink
Ignore capture cards without video source
Browse files Browse the repository at this point in the history
Ignore the capture cards that are not connected to a video source.
This is for most users a situation that never happens, and there are
messages given by the backend at startup when there are capture cards
without a video source as this might indicate a configuration error.
Howver, test systems can have many capture cards of which only a few
are to be used simultaneously and disconnecting the video source is
the easiest way to temporarily disable a capture card.
  • Loading branch information
kmdewaal committed Dec 20, 2023
1 parent f7d0ab5 commit 04e84d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/cardutil.cpp
Expand Up @@ -2249,6 +2249,7 @@ std::vector<uint> CardUtil::GetConflictingInputs(uint inputid)
"JOIN inputgroup ig ON ig.inputgroupid = g.inputgroupid "
"JOIN capturecard c ON c.cardid = ig.cardinputid "
" AND c.cardid <> :INPUTID2 "
" AND c.sourceid > 0 "
"ORDER BY c.cardid");

query.bindValue(":INPUTID1", inputid);
Expand Down
1 change: 1 addition & 0 deletions mythtv/programs/mythbackend/scheduler.cpp
Expand Up @@ -5831,6 +5831,7 @@ bool Scheduler::InitInputInfoMap(void)

query.prepare("SELECT cardid, parentid, schedgroup "
"FROM capturecard "
"WHERE sourceid > 0 "
"ORDER BY cardid");
if (!query.exec())
{
Expand Down

0 comments on commit 04e84d2

Please sign in to comment.