From c8f8ba42c041f2443d0f5916ee6d9b01cdf0d5b3 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sat, 15 Mar 2014 09:08:09 -0300 Subject: [PATCH] dvbv5-zap: only start audio filtering if audio PID > 0 When used with -P, audio filter PID is zero. Yet, it is currently starting an audio PID filter. This could cause troubles with some hardware filters. As PID is always bigger than zero, this patch should fix the issue. Signed-off-by: Mauro Carvalho Chehab --- 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 cffac98..5c3b74c 100644 --- a/utils/dvb/dvbv5-zap.c +++ b/utils/dvb/dvbv5-zap.c @@ -853,7 +853,7 @@ int main(int argc, char **argv) } } - if (apid >= 0) { + if (apid > 0) { if (args.silent < 2) fprintf(stderr, "audio pid %d\n", apid); if ((audio_fd = open(args.demux_dev, O_RDWR)) < 0) { -- 2.7.4