]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: some drivers appear to fail to respond to ENUM_DELSYS!
authorAdam Sutton <dev@adamsutton.me.uk>
Sat, 11 Jan 2014 01:11:51 +0000 (01:11 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Sat, 11 Jan 2014 01:40:18 +0000 (01:40 +0000)
src/input/mpegts/linuxdvb/linuxdvb_adapter.c

index ac8ac26145dc2c852d6ff03c5cb374c3e5f51298..7d13625ff3a789172b0c898bde978b0e20d23ae7 100644 (file)
@@ -143,7 +143,7 @@ linuxdvb_adapter_create
 static void
 linuxdvb_adapter_add ( const char *path )
 {
-  int a, i, j, r = 0, fd;
+  int a, i, j, r, fd;
   char fe_path[512], dmx_path[512], dvr_path[512], uuid[UUID_STR_LEN];
   linuxdvb_adapter_t *la = NULL;
   struct dvb_frontend_info dfi;
@@ -207,10 +207,11 @@ linuxdvb_adapter_add ( const char *path )
       cmdseq.props = fecmd;
       cmdseq.num   = 2;
       r = ioctl(fd, FE_SET_PROPERTY, &cmdseq);
+    } else {
+      cmd.u.buffer.len = 0;
     }
 #endif
-    if (!r)
-      r = ioctl(fd, FE_GET_INFO, &dfi);
+    r = ioctl(fd, FE_GET_INFO, &dfi);
     close(fd);
     if(r) {
       tvhlog(LOG_ERR, "linuxdvb", "unable to query %s", fe_path);