Re: [PATCH 2/2] sdlcam: ignore binary

2017-11-13 Thread Rafaël Carré
Adding linux-media, thanks On 13/11/2017 10:20, Pavel Machek wrote: > On Mon 2017-11-13 10:19:08, Rafaël Carré wrote: >> Signed-off-by: Rafaël Carré <fun...@videolan.org> > > Acked-by: PavelMachek <pa...@ucw.cz> > >> --- >> contrib/test/.gitig

[PATCH 1/2] sdlcam: fix linking

2017-11-13 Thread Rafaël Carré
Signed-off-by: Rafaël Carré <fun...@videolan.org> --- contrib/test/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/test/Makefile.am b/contrib/test/Makefile.am index 6a4303d7..0188fe21 100644 --- a/contrib/test/Makefile.am +++ b/contrib/test/Makef

[PATCH 2/2] sdlcam: ignore binary

2017-11-13 Thread Rafaël Carré
Signed-off-by: Rafaël Carré <fun...@videolan.org> --- contrib/test/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/test/.gitignore b/contrib/test/.gitignore index ad64325b..5bd81d01 100644 --- a/contrib/test/.gitignore +++ b/contrib/test/.gitignore @@ -8,3 +8,4 @@

[PATCH] dvb_local_read: ignore EAGAIN

2017-11-23 Thread Rafaël Carré
If the device has been opened with O_NONBLOCK, EAGAIN is a legitimate error Signed-off-by: Rafaël Carré <fun...@videolan.org> --- lib/libdvbv5/dvb-dev-local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c

[PATCH] dvbv5-zap: accept -S 0 option

2017-12-13 Thread Rafaël Carré
Signed-off-by: Rafaël Carré <fun...@videolan.org> --- utils/dvb/dvbv5-zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c index a88500d1..1b6dabd0 100644 --- a/utils/dvb/dvbv5-zap.c +++ b/utils/dvb/dvbv5-zap.c @@ -930,7

Re: [PATCH] dvb-sat: do the best to tune if DiSEqC is disabled

2017-12-13 Thread Rafaël Carré
} > + usleep((15 + parms->p.diseqc_wait) * 1000); > + > + /* miniDiSEqC/Toneburst commands are defined only for up to 2 > sattelites */ > + if (parms->p.sat_number < 2) { > + rc = dvb_fe_diseqc_burst(>p, > parms->p.sat_number); > + if (rc) > + return rc; > + } > + usleep(15 * 1000); > } > - usleep(15 * 1000); > > rc = dvb_fe_sec_tone(>p, tone_on ? SEC_TONE_ON : SEC_TONE_OFF); > > Tested-by: Rafaël Carré <fun...@videolan.org>

[PATCH] Statically linking libdvbv5 must include -ludev

2017-12-19 Thread Rafaël Carré
Signed-off-by: Rafaël Carré <fun...@videolan.org> --- lib/libdvbv5/libdvbv5.pc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libdvbv5/libdvbv5.pc.in b/lib/libdvbv5/libdvbv5.pc.in index 7e3c4f5c..6b5f292d 100644 --- a/lib/libdvbv5/libdvbv5.pc.in +++ b/lib/libdvbv5/libdvbv5

[PATCH v2] dvb_logfunc: add a user private parameter

2017-11-16 Thread Rafaël Carré
dvb_fe_open_flags() is called, the custom function can not be set yet, so dvb_fe_open_flags() will log errors using the old function without private context. Signed-off-by: Rafaël Carré <fun...@videolan.org> --- lib/include/libdvbv5/dvb-dev.h | 21 lib/include/libdvbv5/dvb-log.

[PATCH 2/2] sdlcam: ignore binary

2017-11-10 Thread Rafaël Carré
--- contrib/test/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/test/.gitignore b/contrib/test/.gitignore index ad64325b..5bd81d01 100644 --- a/contrib/test/.gitignore +++ b/contrib/test/.gitignore @@ -8,3 +8,4 @@ stress-buffer v4l2gl v4l2grab mc_nextgen_test +sdlcam --

[PATCH 1/2] sdlcam: fix linking

2017-11-10 Thread Rafaël Carré
--- contrib/test/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/test/Makefile.am b/contrib/test/Makefile.am index 6a4303d7..0188fe21 100644 --- a/contrib/test/Makefile.am +++ b/contrib/test/Makefile.am @@ -37,7 +37,7 @@ v4l2gl_LDADD =

Re: [PATCH 2/2] sdlcam: ignore binary

2017-11-11 Thread Rafaël Carré
On 11/10/2017 05:05 PM, Rafaël Carré wrote: > --- > contrib/test/.gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/contrib/test/.gitignore b/contrib/test/.gitignore > index ad64325b..5bd81d01 100644 > --- a/contrib/test/.gitignore > +++ b/contrib/test/.

Re: [PATCH 1/2] sdlcam: fix linking

2017-11-11 Thread Rafaël Carré
On 11/10/2017 05:05 PM, Rafaël Carré wrote: > --- > contrib/test/Makefile.am | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/contrib/test/Makefile.am b/contrib/test/Makefile.am > index 6a4303d7..0188fe21 100644 > --- a/contrib/test/Makefile.am

[PATCH] dvb_local_open(): strdup fname before calling dvb_fe_open_fname()

2017-11-14 Thread Rafaël Carré
: handle_device_change (dvb-dev-local.c:137) ==5290==by 0x4E561DA: dvb_local_find (dvb-dev-local.c:323) ==5290==by 0x10880E: main (leak.c:10) Signed-off-by: Rafaël Carré <fun...@videolan.org> --- lib/libdvbv5/dvb-dev-local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 2/2] dvbv5-daemon: 0 is a valid fd

2017-11-16 Thread Rafaël Carré
On 16/11/2017 12:25, Mauro Carvalho Chehab wrote: > Em Wed, 15 Nov 2017 12:33:36 +0100 > Rafaël Carré <fun...@videolan.org> escreveu: > >> --- >> utils/dvb/dvbv5-daemon.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git

Re: [PATCH v2] dvb_dev_get_fd(): return fd of local devices

2017-11-16 Thread Rafaël Carré
On 15/11/2017 15:25, Rafaël Carré wrote: > This makes it possible to poll a local device. > Getting the fd is preferrable to adding a dvb_dev_poll() function, > because we can poll several fds together in an event-based program. > > This is not implemented for remote devices, as p

[PATCH] dvb_dev_get_fd(): return fd of local devices

2017-11-15 Thread Rafaël Carré
This makes it possible to poll a local device. Getting the fd is preferrable to adding a dvb_dev_poll() function, because we can poll several fds together in an event-based program. This is not implemented for remote devices, as polling a remote fd does not make sense. We could instead return the

[PATCH 1/2] dvb_logfunc: add a user private parameter

2017-11-15 Thread Rafaël Carré
--- lib/include/libdvbv5/dvb-dev.h | 3 ++- lib/include/libdvbv5/dvb-fe.h | 9 +++-- lib/include/libdvbv5/dvb-log.h | 33 + lib/libdvbv5/dvb-dev.c | 3 ++- lib/libdvbv5/dvb-fe.c | 15 --- lib/libdvbv5/dvb-log.c | 3 ++-

[PATCH 2/2] dvbv5-daemon: 0 is a valid fd

2017-11-15 Thread Rafaël Carré
--- utils/dvb/dvbv5-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/dvb/dvbv5-daemon.c b/utils/dvb/dvbv5-daemon.c index 58485ac6..711694e0 100644 --- a/utils/dvb/dvbv5-daemon.c +++ b/utils/dvb/dvbv5-daemon.c @@ -570,7 +570,7 @@ void dvb_remote_log(void *priv,

[PATCH v2] dvb_dev_get_fd(): return fd of local devices

2017-11-15 Thread Rafaël Carré
This makes it possible to poll a local device. Getting the fd is preferrable to adding a dvb_dev_poll() function, because we can poll several fds together in an event-based program. This is not implemented for remote devices, as polling a remote fd does not make sense. We could instead return the