Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tvhdhomerun: initial cleanup of the plugin
- attempt to mirror linuxdvb more closely
- remove bunch of mutex'es
- implement UDP unicast
- attempt to fix the PID filter issues
  • Loading branch information
beralt authored and perexg committed Oct 14, 2014
1 parent e7ca66c commit 9380934
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 209 deletions.
8 changes: 2 additions & 6 deletions src/input/mpegts/tvhdhomerun/tvhdhomerun.c
Expand Up @@ -280,7 +280,6 @@ static void tvhdhomerun_device_create(struct hdhomerun_discover_device_t *dInfo)

hd->hd_override_type = strdup(dvb_type2str(type));
tvhlog(LOG_INFO, "tvheadend","Using Network type : %s", hd->hd_override_type);


/* some sane defaults */
hd->hd_fullmux_ok = 1;
Expand All @@ -291,8 +290,7 @@ static void tvhdhomerun_device_create(struct hdhomerun_discover_device_t *dInfo)
hdhomerun_tuner = hdhomerun_device_create(dInfo->device_id, dInfo->ip_addr, 0, NULL);
{
const char *deviceModel = hdhomerun_device_get_model_str(hdhomerun_tuner);
if ( deviceModel != NULL )
{
if(deviceModel != NULL) {
hd->hd_info.deviceModel = strdup(deviceModel);
}
hdhomerun_device_destroy(hdhomerun_tuner);
Expand Down Expand Up @@ -337,8 +335,6 @@ static void tvhdhomerun_device_create(struct hdhomerun_discover_device_t *dInfo)
htsmsg_destroy(conf);
}



static void
tvhdhomerun_discovery_timer_cb(void *aux)
{
Expand All @@ -348,7 +344,7 @@ tvhdhomerun_discovery_timer_cb(void *aux)
return;

int numDevices = hdhomerun_discover_find_devices_custom(0,
HDHOMERUN_DEVICE_TYPE_TUNER,
HDHOMERUN_DEVICE_TYPE_TUNER,
HDHOMERUN_DEVICE_ID_WILDCARD,
result_list,
MAX_HDHOMERUN_DEVICES);
Expand Down

0 comments on commit 9380934

Please sign in to comment.