mirror of
https://github.com/Silicondust/libhdhomerun
synced 2025-08-20 13:33:29 -07:00
handle discovery error condition
This commit is contained in:
parent
6fee48fe15
commit
1efbcb2b87
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ static int hdhomerun_device_selector_load_from_str_discover(struct hdhomerun_dev
|
|||
{
|
||||
struct hdhomerun_discover_device_t result;
|
||||
int discover_count = hdhomerun_discover_find_devices_custom_v2(target_ip, HDHOMERUN_DEVICE_TYPE_TUNER, device_id, &result, 1);
|
||||
if (discover_count != 1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int count = 0;
|
||||
unsigned int tuner_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue