Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: fix en50494 (unicable) config loading
  • Loading branch information
perexg committed Aug 1, 2014
1 parent 09e59d2 commit 47bb0ef
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/input/mpegts/linuxdvb/linuxdvb_en50494.c
Expand Up @@ -266,21 +266,23 @@ linuxdvb_en50494_create0
port = 0;
}

ld = linuxdvb_diseqc_create0(calloc(1, sizeof(linuxdvb_en50494_t)),
le = calloc(1, sizeof(linuxdvb_en50494_t));
if (le == NULL)
return NULL;
le->le_position = port;
le->le_id = 0;
le->le_frequency = 0;
le->le_pin = LINUXDVB_EN50494_NOPIN;

ld = linuxdvb_diseqc_create0((linuxdvb_diseqc_t *)le,
NULL, &linuxdvb_en50494_class, conf,
"en50494", ls);
le = (linuxdvb_en50494_t*)ld;
if (ld) {
ld->ld_tune = linuxdvb_en50494_tune;
/* May not needed: ld->ld_grace = linuxdvb_en50494_grace; */

le->le_position = port;
le->le_id = 0;
le->le_frequency = 0;
le->le_pin = LINUXDVB_EN50494_NOPIN;
}

return (linuxdvb_diseqc_t*)ld;
return ld;
}

void
Expand Down

1 comment on commit 47bb0ef

@InuSasha
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was the failure, i had searched teh last two days for it :)
Thanks

now i can go on, and improve the collision detection

Please sign in to comment.