From patchwork Sat Dec 28 15:45:54 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: 3414041 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 56FB3C02DC for ; Sat, 28 Dec 2013 15:46:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D30D20107 for ; Sat, 28 Dec 2013 15:46:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D327120103 for ; Sat, 28 Dec 2013 15:46:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755297Ab3L1Pqj (ORCPT ); Sat, 28 Dec 2013 10:46:39 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:34834 "EHLO mail-ee0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755276Ab3L1PqW (ORCPT ); Sat, 28 Dec 2013 10:46:22 -0500 Received: by mail-ee0-f41.google.com with SMTP id t10so4512470eei.28 for ; Sat, 28 Dec 2013 07:46:21 -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=afQTR4q5lF4gAD0MafNg4vihPBKVECOb4zEawdFa5b0=; b=r0zIHi3+rBokjk4ZC6XuJnhN5rRl158/l8BRTTuOD+b4ncvwGJ5JPiNWKLHZaZl/S1 oT8Yw8QRjyrmdTKleCkb0qacCsUjeTLxGC7XAli77KBsSDNY45iBRM25EmxBm1lWTfhf 7B7mv1rO9Qw1LL+X5pyUc2IhUY0bWxFNlKJ/qgOXu1ik0FEOQyhX0pPHTaCjkIneFRD7 R4rxfVQWvf0TMw9nce6lPnG/g0V9vH1Ad2JCuakmNQfClGvE1t7ECHlsWNwssCjdW9iW fhA6SmvNRgnZtSPUCH2R9Yr8OLoPvrt2XF4LfwQGcta4jwHmqgIan0Sv9YbH1L02tdOC XSDw== X-Received: by 10.14.37.66 with SMTP id x42mr2834035eea.83.1388245581584; Sat, 28 Dec 2013 07:46:21 -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.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Dec 2013 07:46:21 -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 06/13] libdvbv5: fix eit times Date: Sat, 28 Dec 2013 16:45:54 +0100 Message-Id: <1388245561-8751-6-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/descriptors/eit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libdvbv5/descriptors/eit.c b/lib/libdvbv5/descriptors/eit.c index d13b14c..e70cf3b 100644 --- a/lib/libdvbv5/descriptors/eit.c +++ b/lib/libdvbv5/descriptors/eit.c @@ -155,9 +155,8 @@ void dvb_time(const uint8_t data[5], struct tm *tm) tm->tm_mday = day; tm->tm_mon = month - 1; tm->tm_year = year; - tm->tm_isdst = -1; - tm->tm_wday = 0; - tm->tm_yday = 0; + tm->tm_isdst = 1; // dst in effect, do not adjust + mktime( tm ); }