From patchwork Sat Dec 28 15:45:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Roth?= X-Patchwork-Id: 3414031 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5BDFFC02DC for ; Sat, 28 Dec 2013 15:46:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67E5B20107 for ; Sat, 28 Dec 2013 15:46:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5864620103 for ; Sat, 28 Dec 2013 15:46:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755275Ab3L1PqU (ORCPT ); Sat, 28 Dec 2013 10:46:20 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]:45916 "EHLO mail-ee0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755237Ab3L1PqU (ORCPT ); Sat, 28 Dec 2013 10:46:20 -0500 Received: by mail-ee0-f44.google.com with SMTP id b57so4433532eek.31 for ; Sat, 28 Dec 2013 07:46:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=CftGL5Io0VQ8p0rjFjvScj+IqUfrsVf+PYjmyP5ZJpU=; b=Ax6XuplC7ADmyX5BkAOUK5HIlepukLSuZR7dfLOcWfM+2gc/GZxtHFS9R95kY2SmlT BOGMiFRfRRFIwvfpUA+b8RNPjNEGJACCnUoa1+iRjxx490o7MULIEaTiYEHQf8cXtkA1 j7nXjm0sxtd5PtnN5Qw9xXhCDFx/C9tTyoPIJdd/CwlneH8oHbCqZtbtU91RgFO3uzyI Hoi0ePEb6oeQUlFT6bWiBuBPlsXJpyaaWeGKXulfpuDLKBW8ad5BxFacK20Bi5cLPTaY BHxkDoubufO2QCzZ98hEwKXUuBvKZ5BeaVfDOyfHj1KHajBaeKwYrMRpr1yKbE9Ahwu2 f+HA== X-Received: by 10.15.56.7 with SMTP id x7mr2876077eew.43.1388245577468; Sat, 28 Dec 2013 07:46:17 -0800 (PST) Received: from neutrino.exnihilo (140-227.61-188.cust.bluewin.ch. [188.61.227.140]) by mx.google.com with ESMTPSA id n1sm91594131eep.20.2013.12.28.07.46.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Dec 2013 07:46:16 -0800 (PST) From: =?UTF-8?q?Andr=C3=A9=20Roth?= To: Linux Media Mailing List Cc: =?UTF-8?q?Andr=C3=A9=20Roth?= Subject: [PATCH 01/13] libdvbv5: fix reading multisection tables Date: Sat, 28 Dec 2013 16:45:49 +0100 Message-Id: <1388245561-8751-1-git-send-email-neolynx@gmail.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index e9ccc72..af3a052 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -187,15 +187,19 @@ int dvb_read_section_with_id(struct dvb_v5_fe_parms *parms, int dmx_fd, dvb_table_header_init(h); if (id != -1 && h->id != id) { /* search for a specific table id */ continue; - } else { - if (table_id == -1) - table_id = h->id; - else if (h->id != table_id) { - dvb_logwarn("dvb_read_section: table ID mismatch reading multi section table: %d != %d", h->id, table_id); - continue; - } } + /*if (id != -1) {*/ + /*if (table_id == -1)*/ + /*table_id = h->id;*/ + /*else if (h->id != table_id) {*/ + /*dvb_logwarn("dvb_read_section: table ID mismatch reading multi section table: %d != %d", h->id, table_id);*/ + /*free(buf);*/ + /*continue;*/ + /*}*/ + /*}*/ + + dvb_logerr("dvb_read_section: got section %d, last %di, filter %d", h->section_id, h->last_section, id ); /* handle the sections */ if (first_section == -1) first_section = h->section_id;