Ticket #3662: mythtv-ignoredevices.patch
File mythtv-ignoredevices.patch, 881 bytes (added by , 17 years ago) |
---|
-
libs/libmyth/mediamonitor-unix.cpp
510 510 */ 511 511 bool MediaMonitorUnix::FindPartitions(const QString &dev, bool checkPartitions) 512 512 { 513 const QString ignore_str = gContext->GetSetting("IgnoreDevices"); 514 const QStringList ignore_list = QStringList::split(',', ignore_str); 515 516 if(ignore_list.contains(dev)) 517 return false; 518 513 519 MythMediaDevice* pDevice = NULL; 514 520 515 521 if (checkPartitions) … … 612 618 removable.close(); 613 619 614 620 if (c == '1') 615 FindPartitions( (*it).section(' ', 1, 1), true);621 FindPartitions(dev, true); 616 622 } 617 623 } 618 624 else if ((*it).startsWith("remove"))