Ticket #4673: mythtv_IsTunable_need_one_card.diff

File mythtv_IsTunable_need_one_card.diff, 734 bytes (added by Shane Shrybman <gnome42@…>, 12 years ago)

IsTunable?() need at least one card

  • libs/libmythtv/tv_play.cpp

     
    56205620    vector<uint> interesting = CardUtil::GetCardIDs(sourceid);
    56215621
    56225622    // filter disconnected cards
    5623     vector<uint> cardids = excluded_cards;
     5623    vector<uint> cardids;
    56245624    for (uint i = 0; i < connected.size(); i++)
    56255625    {
    56265626        for (uint j = 0; j < interesting.size(); j++)
     
    56335633        }
    56345634    }
    56355635
     5636    // Need at least one card
     5637    if (!cardids.size())
     5638        cardids = excluded_cards;
    56365639#if 0
    56375640    cout << "cardids[" << sourceid << "]: ";
    56385641    for (uint i = 0; i < cardids.size(); i++)