From patchwork Sat Dec 28 15:45:57 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: 3414071 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6FCDC9F37A for ; Sat, 28 Dec 2013 15:46:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFFA420127 for ; Sat, 28 Dec 2013 15:46:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E202D20107 for ; Sat, 28 Dec 2013 15:46:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755319Ab3L1Pqp (ORCPT ); Sat, 28 Dec 2013 10:46:45 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]:55879 "EHLO mail-ee0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755284Ab3L1Pq0 (ORCPT ); Sat, 28 Dec 2013 10:46:26 -0500 Received: by mail-ee0-f44.google.com with SMTP id b57so4480886eek.3 for ; Sat, 28 Dec 2013 07:46:25 -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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=Q/U/3RSD+TIolDZ3r6MdsojdNYxhjxieQeRU5W3q/AM=; b=CzAPiK2IwJYhJFWCsmpXPcefHK/nNLKj8x2LKIEbfxYdF9FHhmrbhdoRcYl9v/arNZ Wfkd11ua14GBvz03yF9fyD9rhgf5t9y65Gcgq6b6IC+c1eOup3e9fOa7aITY+00d0bQC PfZL0reUsSqZqmOmvdL8VT6RssLGL2SnFj52lAolyobWUF4JLIgLVmlhZcOksEgxMEmx WxE8rKfrZbP0aFZ6wNZQo9uUb/qixCUcMPsu3FlvRkdbBEUVmceWWJ+VlZc4ldRbGybk lBO+ymm37qT3xc0HHBHHsXD3oxoWQMFxwZCbbA1C0LXWPQQ6NbTc+eMQ0Kklczqyz80g G10Q== X-Received: by 10.15.82.8 with SMTP id z8mr47813704eey.25.1388245585223; Sat, 28 Dec 2013 07:46:25 -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.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Dec 2013 07:46:24 -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 09/13] libdvbv5: fix section counting Date: Sat, 28 Dec 2013 16:45:57 +0100 Message-Id: <1388245561-8751-9-git-send-email-neolynx@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1388245561-8751-1-git-send-email-neolynx@gmail.com> References: <1388245561-8751-1-git-send-email-neolynx@gmail.com> 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index bd9d2fb..6f3def6 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -208,7 +208,7 @@ int dvb_read_section_with_id(struct dvb_v5_fe_parms *parms, int dmx_fd, else if (start_id == h->id && h->section_id == first_section) break; - if (last_section == -1) + if (last_section == -1 || h->last_section > last_section) last_section = h->last_section; if (!tbl) {