linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dvbv5-tzap with pctv 290e/292e needs EAGAIN for pat/pmt to work when recording.
@ 2015-06-02 22:25 Andy Furniss
  2015-06-10 12:52 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Furniss @ 2015-06-02 22:25 UTC (permalink / raw)
  To: linux-media

Running kernel 3.18.14 with git master v4l-utils and a pctv290e + a 292e.

If I try to record with dvbv5-zap and include the "p" option to get
pat/pmt I get -

read_sections: read error: Resource temporarily unavailable
couldn't find pmt-pid for sid 10bf

Doing this this fixes it for me (obviously not meant to be a a proper 
patch).

diff --git a/lib/libdvbv5/dvb-demux.c b/lib/libdvbv5/dvb-demux.c
index 30d4eda..b520948 100644
--- a/lib/libdvbv5/dvb-demux.c
+++ b/lib/libdvbv5/dvb-demux.c
@@ -151,8 +151,10 @@ int dvb_get_pmt_pid(int patfd, int sid)
                 if (((count = read(patfd, buf, sizeof(buft))) < 0) && 
errno == EOVERFLOW)
                 count = read(patfd, buf, sizeof(buft));
                 if (count < 0) {
-               perror("read_sections: read error");
-               return -1;
+                       if (errno == EAGAIN) /*ADF*/
+                               continue;
+                       perror("read_sections: read error");
+                       return -1;
                 }

                 section_length = ((buf[1] & 0x0f) << 8) | buf[2];



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-10 22:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 22:25 dvbv5-tzap with pctv 290e/292e needs EAGAIN for pat/pmt to work when recording Andy Furniss
2015-06-10 12:52 ` Mauro Carvalho Chehab
2015-06-10 17:27   ` Andy Furniss
2015-06-10 18:50     ` Mauro Carvalho Chehab
2015-06-10 20:17       ` Mauro Carvalho Chehab
2015-06-10 22:16         ` Andy Furniss
2015-06-10 21:35       ` Andy Furniss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).