libdvbv5/dvb-fe: Fall back to v3 if needed
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 13 Dec 2013 09:31:56 +0000 (07:31 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 15 Dec 2013 14:52:34 +0000 (12:52 -0200)
if FE_GET_PROPERTY gets error, fallback to DVBv3 stats

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/dvb-fe.c

index fb341f4..2d65e14 100644 (file)
@@ -1152,7 +1152,7 @@ int dvb_fe_get_stats(struct dvb_v5_fe_parms *parms)
 
                /* Do a DVBv5.10 stats call */
                if (ioctl(parms->fd, FE_GET_PROPERTY, &props) == -1)
-                       return errno;
+                       goto dvbv3_fallback;
 
                /*
                 * All props with len=0 mean that this device doesn't have any