From patchwork Fri Aug 3 10:26:57 2012 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: 1270291 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D68E63FC33 for ; Fri, 3 Aug 2012 10:27:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753283Ab2HCK1p (ORCPT ); Fri, 3 Aug 2012 06:27:45 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:41272 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753112Ab2HCK1n (ORCPT ); Fri, 3 Aug 2012 06:27:43 -0400 Received: by wgbdr13 with SMTP id dr13so517484wgb.1 for ; Fri, 03 Aug 2012 03:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=DmNKuMFtkV4xLeRND+FjkTGVhVMwg2SuJ2a4GmlR8fY=; b=QY6xlb5n/D9cHES7Y5OC4A8qsoD7T/x0CKG2UEXyrAS3SKfxs2UAEypAv4UYmAuGOc +SGIx4VAB6RU2zW10UGmtlgSAyKl703/ssLqSIpudmGTj2FohWbE+JzVzOQqM4E2ikAi ARe3JQhXYI+YniOIkNsnLjh+XetUezwSSzr0VzkCw+JrAs944TBCWj8qRrdbUubnybMB x/i+cdzr9BKdxx5upAYOOEICQElJpQnos69q2nk2gDpnrasDbEPq/Lv1PsAsQJJmO5w/ CgsRJOpAQJZ7bO6hFyNhkAnTjYw/2iWksOIjJZ6Oxjo4BlttSP+RgoDoE0HyGmclOR1H m+Qg== Received: by 10.180.105.163 with SMTP id gn3mr3282695wib.2.1343989661992; Fri, 03 Aug 2012 03:27:41 -0700 (PDT) Received: from localhost.localdomain (104-38.60-188.cust.bluewin.ch. [188.60.38.104]) by mx.google.com with ESMTPS id fb20sm24830570wid.1.2012.08.03.03.27.41 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Aug 2012 03:27:41 -0700 (PDT) From: =?UTF-8?q?Andr=C3=A9=20Roth?= To: linux-media@vger.kernel.org Cc: =?UTF-8?q?Andr=C3=A9=20Roth?= Subject: [PATCH 4/6] libdvbv5: added dmx stop function Date: Fri, 3 Aug 2012 12:26:57 +0200 Message-Id: <1343989619-12928-4-git-send-email-neolynx@gmail.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1343989619-12928-1-git-send-email-neolynx@gmail.com> References: <1343989619-12928-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 Signed-off-by: André Roth --- lib/include/dvb-demux.h | 1 + lib/libdvbv5/dvb-demux.c | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/include/dvb-demux.h b/lib/include/dvb-demux.h index afd6840..923016e 100644 --- a/lib/include/dvb-demux.h +++ b/lib/include/dvb-demux.h @@ -37,6 +37,7 @@ extern "C" { int dvb_dmx_open(int adapter, int demux); void dvb_dmx_close(int dmx_fd); +void dvb_dmx_stop(int dmx_fd); int dvb_set_pesfilter(int dmxfd, int pid, dmx_pes_type_t type, dmx_output_t output, int buffersize); diff --git a/lib/libdvbv5/dvb-demux.c b/lib/libdvbv5/dvb-demux.c index d07e6cf..6ed2dcd 100644 --- a/lib/libdvbv5/dvb-demux.c +++ b/lib/libdvbv5/dvb-demux.c @@ -55,6 +55,11 @@ void dvb_dmx_close(int dmx_fd) close( dmx_fd); } +void dvb_dmx_stop(int dmx_fd) +{ + (void) ioctl( dmx_fd, DMX_STOP); +} + int dvb_set_pesfilter(int dmxfd, int pid, dmx_pes_type_t type, dmx_output_t output, int buffersize) { struct dmx_pes_filter_params pesfilter;